import 'package:flutter/material.dart';
import '../state/todo_state.dart';

class PriorityBadge extends StatelessWidget {
  final String priority;

  const PriorityBadge({super.key, required this.priority});

  @override
  Widget build(BuildContext context) {
    final colorValue = priorityColors[priority] ?? 0xFF999999;
    return Container(
      width: 12,
      height: 12,
      decoration: BoxDecoration(
        color: Color(colorValue),
        shape: BoxShape.circle,
      ),
    );
  }
}
