mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-06-10 07:16:01 +00:00
feat(dashboard): persist notification center state
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
"use client";
|
||||
|
||||
import { RiArchiveLine, RiCheckboxCircleFill } from "@remixicon/react";
|
||||
import {
|
||||
Empty,
|
||||
EmptyDescription,
|
||||
EmptyMedia,
|
||||
EmptyTitle,
|
||||
} from "@/shared/components/ui/empty";
|
||||
|
||||
type NotificationBellEmptyStateProps = {
|
||||
showArchived: boolean;
|
||||
hasArchivedItems: boolean;
|
||||
};
|
||||
|
||||
export function NotificationBellEmptyState({
|
||||
showArchived,
|
||||
hasArchivedItems,
|
||||
}: NotificationBellEmptyStateProps) {
|
||||
return (
|
||||
<div className="px-4 py-8">
|
||||
<Empty>
|
||||
<EmptyMedia>
|
||||
{showArchived ? (
|
||||
<RiArchiveLine className="text-muted-foreground" />
|
||||
) : (
|
||||
<RiCheckboxCircleFill color="green" />
|
||||
)}
|
||||
</EmptyMedia>
|
||||
<EmptyTitle>
|
||||
{showArchived
|
||||
? "Nenhuma notificação arquivada"
|
||||
: hasArchivedItems
|
||||
? "Nenhuma notificação ativa"
|
||||
: "Nenhuma notificação"}
|
||||
</EmptyTitle>
|
||||
<EmptyDescription>
|
||||
{showArchived
|
||||
? "Você ainda não arquivou nenhuma notificação."
|
||||
: hasArchivedItems
|
||||
? "As demais notificações estão arquivadas. Ative o filtro para revê-las."
|
||||
: "Você está em dia com seus pagamentos!"}
|
||||
</EmptyDescription>
|
||||
</Empty>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user