import { dayjs } from '@/lib/dayjs';

import { CreateFormProps, MfCategory } from './type';

export const defaultLpCategory: MfCategory = {
  isEmpty: false,
  id: 'default-id',
  cat_name: 'default-category-name',
  cat_image_url: undefined,
  cat_image: undefined,
  pos: 0,
  visible: 'hidden',
  lesson_id: 'default-lesson-id',
  description: 'default-description',
  remarks: 'default-remarks',
  slug: '',
  init_answer: {},
  // from pocketbase
  collectionId: '0000000000',
  createdAt: dayjs('2099-01-01').toDate(),
  //
  name: '',
  avatar: '',
  email: '',
  phone: '',
  quota: 0,
  status: 'NA',
};

// export const LpCategoryCreateFormDefault: CreateFormProps = {
//   name: '',
//   type: '',
//   pos: 1,
//   visible: 'visible',
//   description: '',
//   isActive: true,
//   order: 1,
//   imageUrl: '',
// };

export const emptyLpCategory: MfCategory = {
  ...defaultLpCategory,
  isEmpty: true,
};
