18 lines
506 B
TypeScript
18 lines
506 B
TypeScript
export interface AppNotification {
|
|||
|
|
id?: number
|
||
|
|
title: string
|
||
|
|
body: string
|
||
|
|
severity: 'info' | 'success' | 'warning' | 'danger'
|
||
|
|
is_active: boolean
|
||
|
|
created_by?: number | null
|
||
|
|
created_at?: string
|
||
|
|
updated_at?: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export const APP_NOTIFICATION_SEVERITIES = [
|
||
|
|
{ value: 'info', label: 'اطلاعات (info)' },
|
||
|
|
{ value: 'success', label: 'موفق (success)' },
|
||
|
|
{ value: 'warning', label: 'هشدار (warning)' },
|
||
|
|
{ value: 'danger', label: 'مهم / خطر (danger)' },
|
||
|
|
] as const
|