first commit

This commit is contained in:
2024-10-05 15:04:17 +08:00
parent 792a3d9db1
commit ee746cd61d
44 changed files with 2399 additions and 124 deletions

77
types/index.ts Normal file
View File

@@ -0,0 +1,77 @@
import { MouseEventHandler } from "react";
export interface SettingsProps {
address: string;
google_map_api_key: string;
latitude: number;
longitude: number;
phone: string;
email: string;
facebook: string;
instagram: string;
youtube: string;
youtube_link: string;
whatsapp: string;
id: string;
}
export interface MessageProps {
name: string,
phone: string,
email: string,
message: string,
}
export interface CustomButtonProps {
isDisabled?: boolean;
// btnType?: "button" | "submit";
//containerStyles?: string;
//textStyles?: string;
title: string;
text_and_button_size: string;
//rightIcon?: string;
handleClick?: MouseEventHandler<HTMLButtonElement>;
}
export interface imageProps {
image: string,
course_id: string,
index: number,
id: string
}
export interface CoursesProps {
id: string,
title: string,
images: Array<imageProps>,
info_images: Array<imageProps>,
schedule: Array<ScheduleProps>,
sort_description: string,
long_description: string,
information: string,
contant: string,
remark: string,
created_at: string,
}
export interface ScheduleProps {
id: string,
course_id: string,
title: string,
info1: string,
info2: string,
date: string,
}
export interface RerganizedScheduleProps {
yearAndMonth: string,
schedules: Array<ScheduleProps>
}
export interface CoursesArrayProps {
courses: Array<CoursesProps>
}