// Copyright: © 2026 TWWIM UG. All rights reserved. (www.twwim.com) /** * TabBar — 4-tab nav for PluginSettingsPage. * * Pure presentational; selection state lives in the parent so other widgets * (e.g. validation summary) can drive tab focus on demand. * * @layer Presentation */ import type { TFunction } from '../lib/constants'; export type PluginSettingsTab = 'visibility' | 'snippet' | 'welcome' | 'idle'; interface TabBarProps { active: PluginSettingsTab; onChange: (next: PluginSettingsTab) => void; t: TFunction; } const TABS: ReadonlyArray<{ id: PluginSettingsTab; labelKey: string }> = [ { id: 'visibility', labelKey: 'tenants.pluginSettings.tabs.visibility' }, { id: 'snippet', labelKey: 'tenants.pluginSettings.tabs.snippet' }, { id: 'welcome', labelKey: 'tenants.pluginSettings.tabs.welcome' }, { id: 'idle', labelKey: 'tenants.pluginSettings.tabs.idle' }, ]; export function TabBar({ active, onChange, t }: TabBarProps) { return (
); }