diff --git a/types/admin.ts b/types/admin.ts new file mode 100644 index 0000000..386a7a6 --- /dev/null +++ b/types/admin.ts @@ -0,0 +1,25 @@ +export type ActivityType = + | "New Patient Registered" + | "New Doctor Registered" + | "New Hospital Registered" + | "New Receptionist Registered"; + +export type TilesDataProp = { + totalHospitals: string; + totalPatients: string; + totalDoctors: string; + totalReceptionists: string; +}; + +export type RecentUser = { + title: ActivityType; + description: string; + timeSince: string; +}; + +export type PaginatedResponse = { + users: RecentUser[]; + page: number; + totalPages: number; + totalItems: number; +}; diff --git a/types/index.ts b/types/index.ts new file mode 100644 index 0000000..2dc46f5 --- /dev/null +++ b/types/index.ts @@ -0,0 +1 @@ +export * from "./admin";