Initial commit: Mana Collection dashboards (Next.js).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
export type SubscriptionStatus = "regular" | "premium";
|
||||
|
||||
export type Customer = {
|
||||
id: string;
|
||||
nameFa: string;
|
||||
phone: string;
|
||||
joinedAt: string;
|
||||
subscription: SubscriptionStatus;
|
||||
};
|
||||
|
||||
export const customers: Customer[] = [
|
||||
{
|
||||
id: "cu1",
|
||||
nameFa: "سارا محمدی",
|
||||
phone: "09121234567",
|
||||
joinedAt: "2025-11-12",
|
||||
subscription: "premium",
|
||||
},
|
||||
{
|
||||
id: "cu2",
|
||||
nameFa: "نیلوفر احمدی",
|
||||
phone: "09351239876",
|
||||
joinedAt: "2026-01-04",
|
||||
subscription: "regular",
|
||||
},
|
||||
{
|
||||
id: "cu3",
|
||||
nameFa: "مریم کریمی",
|
||||
phone: "09197654321",
|
||||
joinedAt: "2025-08-21",
|
||||
subscription: "premium",
|
||||
},
|
||||
{
|
||||
id: "cu4",
|
||||
nameFa: "الهام رضایی",
|
||||
phone: "09014567890",
|
||||
joinedAt: "2026-02-18",
|
||||
subscription: "regular",
|
||||
},
|
||||
{
|
||||
id: "cu5",
|
||||
nameFa: "هانیه موسوی",
|
||||
phone: "09128887766",
|
||||
joinedAt: "2025-12-02",
|
||||
subscription: "regular",
|
||||
},
|
||||
{
|
||||
id: "cu6",
|
||||
nameFa: "یاسمن نوری",
|
||||
phone: "09361112233",
|
||||
joinedAt: "2026-03-09",
|
||||
subscription: "premium",
|
||||
},
|
||||
{
|
||||
id: "cu7",
|
||||
nameFa: "زهرا حسینی",
|
||||
phone: "09201230000",
|
||||
joinedAt: "2025-06-30",
|
||||
subscription: "regular",
|
||||
},
|
||||
{
|
||||
id: "cu8",
|
||||
nameFa: "فرناز اکبری",
|
||||
phone: "09193456789",
|
||||
joinedAt: "2026-04-01",
|
||||
subscription: "premium",
|
||||
},
|
||||
];
|
||||
|
||||
export function formatJoinedDate(isoDate: string) {
|
||||
const date = new Date(`${isoDate}T12:00:00`);
|
||||
return new Intl.DateTimeFormat("fa-IR-u-ca-persian", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
}).format(date);
|
||||
}
|
||||
|
||||
export function subscriptionLabel(status: SubscriptionStatus) {
|
||||
return status === "premium" ? "پرمیوم" : "عادی";
|
||||
}
|
||||
Reference in New Issue
Block a user