'use client';

// please use src/components/dashboard/lesson_type/interfaces.ts for defining new interfaces
import { dayjs } from '@/lib/dayjs';

export interface LessonType {
  id: string;
  isEmpty?: boolean;
  name: string;
  type: string;
  pos: number;
  visible: 'visible' | 'hidden';
  createdAt: Date;
  //
  // original
  // id: string;
  // name: string;
  //
  avatar?: string;
  email: string;
  phone?: string;
  quota: number;
  status: 'pending' | 'active' | 'blocked';
  // createdAt: Date;
}

export const LessonTypeDefaultValue: LessonType = {
  id: 'string',
  name: 'string',
  type: 'string',
  pos: 1,
  visible: 'visible',
  createdAt: dayjs().toDate(),
  //
  // original
  // id: 'string',
  // name: 'string',
  //
  avatar: 'string',
  email: 'string',
  phone: 'string',
  quota: 1,
  status: 'pending',
  // createdAt: Date;
};

export interface DBLessonType {
  id: string;
  name: string;
  type: string;
  pos: number;
  visible: 'visible' | 'hidden';
  createdAt: Date;
  created: 'string';
}

export interface Helloworld {
  id: string;
}
