'use client' import { useSelectionStore } from '@/stores/selection-store' import { PanelNavBar } from '@/components/shared/panel-nav-bar' interface Story { id: string title: string status: string } interface StoryPanelProps { storiesByPbi: Record isDemo: boolean } export function StoryPanel({ storiesByPbi, isDemo }: StoryPanelProps) { const { selectedPbiId } = useSelectionStore() const stories = selectedPbiId ? (storiesByPbi[selectedPbiId] ?? []) : null return (
+ Story ) : undefined } />
{stories === null ? (

Selecteer een PBI om de stories te bekijken.

) : stories.length === 0 ? (

Nog geen stories voor dit PBI.

) : (
{stories.map(story => (
{story.title}
))}
)}
) }