import { FlaskConical } from 'lucide-react';
import { Button } from '@/components/ui/button';

type Props = {
  onClick: () => void;
  /** Optional label; default "Test" */
  label?: string;
};

export function ApplicantFormAutofillButton({ onClick, label = 'Test' }: Props) {
  return (
    <Button
      type="button"
      variant="outline"
      size="sm"
      className="h-8 gap-1 text-xs shrink-0"
      onClick={onClick}
      title="Điền nhanh dữ liệu thử — pseudo text theo cấu trúc data_blank.json / template_application_form.docx"
    >
      <FlaskConical className="h-3.5 w-3.5" aria-hidden />
      {label}
    </Button>
  );
}
