phx-react
Version:
PHX REACT
44 lines (43 loc) • 900 B
TypeScript
export type NotiItem = {
id: string;
title: string;
content?: string;
preview_text?: string;
action?: string;
fallback_url?: string | null;
sent_at?: string;
read_at?: string | null;
tags?: {
receiver?: string;
module?: string;
};
student?: {
id?: number | null;
name?: string | null;
avatar?: string | null;
};
payload?: {
notification_id?: string;
action?: string;
subsystem?: string;
title?: string;
type?: string;
student_code?: string;
event_type?: string;
};
status?: {
is_read?: boolean;
label?: string;
};
unlinked?: boolean;
};
export type PreviewModalData = {
id: string;
title?: string;
html: string;
};
export type HtmlIFrameProps = {
id: string;
html: string;
className?: string;
};