
import * as Yup from "yup";


export const getInitialValues = (objectToEdit: any | null = null): any => {
  return {
    id: objectToEdit?.id ?? null,
    name: objectToEdit?.name ?? null,
    images: objectToEdit?.images ?? null,
    category_id: objectToEdit?.category_id ?? null,
    video: objectToEdit?.video ?? null,
    description: objectToEdit?.description ?? null,
    price: objectToEdit?.price ?? null,
    attributes: objectToEdit?.attributes ?? null,

    
  };
};

export const getValidationSchema = (editMode: boolean = false): Yup.Schema<any> => {
  // Validate input
  return Yup.object().shape({
    name: Yup.string().required('Required'),

  });
};

