diff --git a/src/lib/components/sidebar/details/DetailsSection.svelte b/src/lib/components/sidebar/details/DetailsSection.svelte index ae1ec4c5..a07de17d 100644 --- a/src/lib/components/sidebar/details/DetailsSection.svelte +++ b/src/lib/components/sidebar/details/DetailsSection.svelte @@ -4,14 +4,22 @@ interface Props { title: string children: Snippet + /** Message to show when section has no content */ + emptyMessage?: string + /** Whether the section is empty (shows emptyMessage instead of children) */ + empty?: boolean } - let { title, children }: Props = $props() + let { title, children, emptyMessage, empty = false }: Props = $props()