import { type ComponentProps, useCallback } from 'react'; import { DropdownRecoilScopeContext } from '@/ui/dropdown/states/recoil-scope-contexts/DropdownRecoilScopeContext'; import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope'; import { ViewBar, type ViewBarProps } from '@/ui/view-bar/components/ViewBar'; import type { BoardColumnDefinition } from '../types/BoardColumnDefinition'; import { BoardOptionsDropdownKey } from '../types/BoardOptionsDropdownKey'; import { BoardOptionsHotkeyScope } from '../types/BoardOptionsHotkeyScope'; import { BoardOptionsDropdown } from './BoardOptionsDropdown'; export type BoardHeaderProps = ComponentProps<'div'> & { onStageAdd?: (boardColumn: BoardColumnDefinition) => void; } & Pick< ViewBarProps, | 'availableSorts' | 'defaultViewName' | 'onViewsChange' | 'onViewSubmit' | 'scopeContext' >; export function BoardHeader({ onStageAdd, onViewsChange, onViewSubmit, scopeContext, availableSorts, defaultViewName, }: BoardHeaderProps) { const OptionsDropdownButton = useCallback( () => ( ), [onStageAdd, onViewsChange, scopeContext], ); return ( ); }