'use client';

import { Wrench } from 'lucide-react';

import type { TicketDetail } from '@/types';

import { RepairEvidenceForm } from './RepairEvidenceForm';
import { TicketActionCard } from './TicketActionCard';

export function SubmitRepairAction({ ticket }: { ticket: TicketDetail }) {
  return (
    <TicketActionCard icon={Wrench} title="Submit Repair Evidence">
      <RepairEvidenceForm
        ticketId={ticket.id}
        defectClass={ticket.defect_class}
      />
    </TicketActionCard>
  );
}
