'use client';

import { useRouter } from 'next/navigation';
import { ClipboardCheck } from 'lucide-react';

import { Button } from '@/components/ui/button';
import { ROUTES } from '@/utils/routes';

export function OpenRepairReviewAction({ ticketId }: { ticketId: string }) {
  const router = useRouter();

  return (
    <Button
      type="button"
      onClick={() => router.push(ROUTES.TICKET_REVIEW(ticketId))}
    >
      <ClipboardCheck />
      Review Repairs
    </Button>
  );
}
