WHITEBOARD DASHBOARD
NoteBar
The single global notification surface: an Alert with a dismiss button. Renders nothing without children.
PREVIEW
Created "Midnight Tide".
SOURCE
import { NoteBar } from '@objectifthunes/whiteboard'
// note: { tone, text } | null, from your store
<NoteBar tone={note?.tone} onDismiss={clearNote}>
{note?.text}
</NoteBar>NOTES
Mount it once in the shell and feed it from your store — it renders nothing when childrenis empty, so there is no conditional at the call site. Clear the note on navigation: a stale "Created X" line following the user to the next page reads as a bug.
Tones are Alert's: info, success, error, muted.