import { useId } from 'react'; import { NavIcon } from '../NavIcon'; export type HorizontalEditorTabDef = { id: string; label: string; icon?: string }; type Props = { tabs: HorizontalEditorTabDef[]; value: string; onChange: (id: string) => void; /** Accessible name for the tab list */ ariaLabel?: string; className?: string; }; /** * Segmented pill-style tab strip used by admin hub pages (Content library, * Reports, Integrations, …) and by content editors (Quiz Content/Settings). * * The active tab is rendered as a raised "card" pill so the strip reads * clearly as a tab group even when it sits on a neutral page background — * which the old underline-only style did not. */ export function HorizontalEditorTabs({ tabs, value, onChange, ariaLabel = 'Editor sections', className = '', }: Props) { const uid = useId(); return (