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

import type { CreateForm, LessonCategory } from './type';

export const defaultLessonCategory: LessonCategory = {
  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',
  //
  createdAt: dayjs('2099-01-01').toDate(),
  //
  name: '',
  avatar: '',
  email: '',
  phone: '',
  quota: 0,
  status: 'NA',
};

export const LessonCategoryCreateFormDefault: CreateForm = {
  name: '',
  type: '',
  pos: 1,
  visible: 'visible',
};

export const emptyLessonCategory: LessonCategory = {
  ...defaultLessonCategory,
  isEmpty: true,
};
