import { Badge } from "@mantine/core";

export function BookingPriorityBadge({ score }: { score: number }) {
  if (score >= 70) {
    return (
      <Badge color="red" variant="filled" size="sm" radius="lg" tt="uppercase">
        Urgent
      </Badge>
    );
  }
  if (score >= 40) {
    return (
      <Badge color="yellow" variant="filled" size="sm" radius="lg" tt="uppercase">
        High
      </Badge>
    );
  }
  return (
    <Badge color="gray" variant="light" size="sm" radius="lg" tt="uppercase">
      Normal
    </Badge>
  );
}
