export function TruckStatusBadge({
  isActive,
  status,
}: {
  isActive?: boolean;
  status?: string | null;
}) {
  const label = isActive === false ? "Inactive" : status || "Active";
  const tone = isActive === false ? "bg-gray-100 text-gray-700" : "bg-green-50 text-green-700";

  return (
    <span className={`inline-flex rounded-full px-2.5 py-1 text-xs font-medium ${tone}`}>
      {label}
    </span>
  );
}
