added dropdown item type

This commit is contained in:
Mamalizz
2025-02-05 02:06:29 +03:30
parent f5799e526e
commit a822af4668
+25 -17
View File
@@ -44,23 +44,23 @@ declare global {
};
type Article = {
"id": number,
"title": string,
"slug": string,
"content": string,
"summery": string,
"created_at": string,
"updated_at": string,
"cover_image": string,
"views": number,
"meta_description": string,
"meta_keywords": string,
"author": {
"full_name": string,
"profile_photo": string
},
"category": number
}
id: number;
title: string;
slug: string;
content: string;
summery: string;
created_at: string;
updated_at: string;
cover_image: string;
views: number;
meta_description: string;
meta_keywords: string;
author: {
full_name: string;
profile_photo: string;
};
category: number;
};
type UserComment = {
id: number;
@@ -108,4 +108,12 @@ declare global {
hour: string;
price: string;
};
type DropdownItem = {
title: string;
icon: string;
itemClass?: string;
iconClass?: string;
onClick?: () => void;
};
}