import { h } from 'preact' import type { ComponentChildren } from 'preact' interface Tab { readonly label: string readonly active?: boolean readonly onClick?: () => void } interface PaneHeaderProps { readonly tabs: Tab[] readonly right?: ComponentChildren } export default function PaneHeader({ tabs, right }: PaneHeaderProps) { return (
{tabs.map(tab => ( ))}
{right &&
{right}
}
) }