import { mutationOptions } from '@tanstack/react-query';
import { invalidateEmployeeImportData } from '@/lib/query-invalidation';
import { importEmployees, reviewMasterItem } from './service';

export const importEmployeesMutation = mutationOptions({
  mutationFn: (file: File) => importEmployees(file),
  onSuccess: () => invalidateEmployeeImportData()
});

export const reviewMasterItemMutation = mutationOptions({
  mutationFn: reviewMasterItem,
  onSuccess: () => invalidateEmployeeImportData()
});
