2026-03-28 14:27:28 +01:00
|
|
|
import { Tabs } from '@cameleer/design-system';
|
2026-03-28 14:42:58 +01:00
|
|
|
import type { TabKey, Scope } from '../hooks/useScope';
|
|
|
|
|
import { TabKpis } from './TabKpis';
|
2026-03-28 13:52:54 +01:00
|
|
|
import styles from './ContentTabs.module.css';
|
|
|
|
|
|
|
|
|
|
const TABS = [
|
2026-03-28 14:27:28 +01:00
|
|
|
{ label: 'Exchanges', value: 'exchanges' },
|
|
|
|
|
{ label: 'Dashboard', value: 'dashboard' },
|
|
|
|
|
{ label: 'Runtime', value: 'runtime' },
|
2026-03-28 13:52:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
interface ContentTabsProps {
|
|
|
|
|
active: TabKey;
|
|
|
|
|
onChange: (tab: TabKey) => void;
|
2026-03-28 14:42:58 +01:00
|
|
|
scope: Scope;
|
2026-03-28 13:52:54 +01:00
|
|
|
}
|
|
|
|
|
|
2026-03-28 14:42:58 +01:00
|
|
|
export function ContentTabs({ active, onChange, scope }: ContentTabsProps) {
|
2026-03-28 13:52:54 +01:00
|
|
|
return (
|
|
|
|
|
<div className={styles.wrapper}>
|
2026-03-28 14:27:28 +01:00
|
|
|
<Tabs
|
2026-03-28 13:52:54 +01:00
|
|
|
tabs={TABS}
|
|
|
|
|
active={active}
|
|
|
|
|
onChange={(v) => onChange(v as TabKey)}
|
|
|
|
|
/>
|
2026-03-28 14:42:58 +01:00
|
|
|
<TabKpis scope={scope} />
|
2026-03-28 13:52:54 +01:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|