<script lang="ts">
import { provideNotificationStore, type NotificationItem } from './notifications.svelte';
import NotificationBell from './NotificationBell.svelte';

type Api = { setNotifications: (items: NotificationItem[]) => void };

let { onReady }: { onReady: (api: Api) => void } = $props();

const store = provideNotificationStore();
onReady({ setNotifications: store.setNotifications });
</script>

<NotificationBell />
