'use client';

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

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

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

  return (
    <Button
      type="button"
      onClick={() => router.push(ROUTES.TICKET_ASSIGN(ticketId))}
    >
      <Users />
      Assign Ticket
    </Button>
  );
}
