feat(ui): add ContentTabs component (Exchanges | Dashboard | Runtime)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-28 13:52:54 +01:00
parent 0eb377b515
commit c1b156bdb4
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { SegmentedTabs } from '@cameleer/design-system';
import type { TabKey } from '../hooks/useScope';
import styles from './ContentTabs.module.css';
const TABS = [
{ label: 'Exchanges', value: 'exchanges' as const },
{ label: 'Dashboard', value: 'dashboard' as const },
{ label: 'Runtime', value: 'runtime' as const },
];
interface ContentTabsProps {
active: TabKey;
onChange: (tab: TabKey) => void;
}
export function ContentTabs({ active, onChange }: ContentTabsProps) {
return (
<div className={styles.wrapper}>
<SegmentedTabs
tabs={TABS}
active={active}
onChange={(v) => onChange(v as TabKey)}
/>
</div>
);
}