Update website/src/routes/notifications/NotificationItem.svelte

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Face 2025-07-15 18:21:58 +03:00 committed by GitHub
parent 00d25c7808
commit d9d85c21b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,11 @@
<script lang="ts"> <script lang="ts">
export let notification; interface Notification {
type: 'HOPIUM' | 'TRANSFER' | 'RUG_PULL' | 'SYSTEM';
link?: string;
isRead: boolean;
}
export let notification: Notification;
export let isNew = false; export let isNew = false;
function getNotificationColorClasses(type: string, isNew: boolean, isRead: boolean) { function getNotificationColorClasses(type: string, isNew: boolean, isRead: boolean) {