Files
shared/media-webui/src/lib/stores/page-actions.svelte.ts
T

6 lines
387 B
TypeScript
Raw Normal View History

import type { Snippet } from 'svelte'
// AppShell renders the page title above the routed page content, so a workspace feature that
// wants a button inside the title container (e.g. a Save action) has to hand it up through this
// shared reactive slot rather than rendering it inline in its own markup.
export const pageActions = $state<{ snippet: Snippet | null }>({ snippet: null })