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

export function BookingPriorityBadge({ score }: { score: number }) {
  if (score >= 1000) {
    return (
      <Badge color="red" variant="filled" size="sm" radius="lg" tt="uppercase">
        Urgent
      </Badge>
    );
  }
  if (score >= 500) {
    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>
  );
}
