import { OptionType } from '@/components/input/SelectInput';
import * as Yup from 'yup';

export const MovementFilterSchema = Yup.object().shape({
  product: Yup.object({
    value: Yup.string().nullable(),
    label: Yup.string().nullable(),
  }).nullable(),
  warehouse: Yup.object({
    value: Yup.string().nullable(),
    label: Yup.string().nullable(),
  }).nullable(),
});

export type MovementFilterType = {
  product?: OptionType<string>;
  warehouse?: OptionType<string>;
};
