feat: add feature notification

This commit is contained in:
2026-02-23 11:09:57 +03:30
parent c2b55647aa
commit d65b73a593
8 changed files with 743 additions and 2 deletions
+14
View File
@@ -49,4 +49,18 @@ export const getEmail = (email: string | null): string => {
export const getMobile = (mobile: string | null): string => {
return mobile || 'شماره موبایل ثبت نشده';
};
export const formatTime = (dateString: string | null): string => {
if (!dateString) return '';
try {
const date = new Date(dateString);
return new Intl.DateTimeFormat('fa-IR', {
hour: '2-digit',
minute: '2-digit',
}).format(date);
} catch {
return '';
}
};