/**
 * ItemForm 타입 정의
 */

import type { ItemMaster } from '@/types/item';
import type { CreateItemFormData } from '@/lib/utils/validation';

export interface ItemFormProps {
  mode: 'create' | 'edit';
  initialData?: ItemMaster;
  onSubmit: (data: CreateItemFormData) => Promise<void>;
}

// BOM 검색 상태 타입
export interface BOMSearchState {
  searchValue: string;
  isOpen: boolean;
}

// 전개도 입력 방식
export type BendingDiagramInputMethod = 'file' | 'drawing';