Settings
Settings notifications
The Notifications pane of space settings, listing the sending-domain block plus two switch groups for member-facing and operator-facing emails.
Available
Ports as-is
Examples
Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.
Settings notifications
Rendered live from Storybook
Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.
Props
The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
customerItems | NotificationToggleItem[] | CUSTOMER_NOTIFICATION_ITEMS | Member-facing group. Defaults to `CUSTOMER_NOTIFICATION_ITEMS`. |
adminItems | NotificationToggleItem[] | ADMIN_NOTIFICATION_ITEMS | Operator-facing group. Defaults to `ADMIN_NOTIFICATION_ITEMS`. |
enabled | Record<string, boolean> | — | Which toggles are on, keyed by item id. Any id not present falls back to `defaultEnabled`, so a caller only has to name the exceptions. |
initialEnabled | Record<string, boolean> | — | Uncontrolled starting map. Ignored when `enabled` is supplied. |
defaultEnabled | boolean | true | Fallback for ids missing from the map. Defaults to `true` — BTS ships everything on. |
onToggle | (id: string, next: boolean) => void | — | Undocumented — add TSDoc to the prop in the library. |
showSendingDomain | boolean | true | Renders the sending-domain block above the two groups. |
sendingDomain | React.ReactNode | — | Replaces the sending-domain block — pass a configured `SettingsSendingDomain`. |
className | string | — | Undocumented — add TSDoc to the prop in the library. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/settings/SettingsNotifications.tsx- Portability
- Copies across unchanged — only the utils import path moves.
- Notes
- Use it to let an operator control which notifications go to members versus to themselves. Transactional notifications like purchase receipts and comment replies are locked on with a tooltip explaining they're required, and the enabled state for every other toggle can be lifted or left uncontrolled.