import { Tabs } from '@cameleer/design-system';
import type { TabKey } from '../hooks/useScope';
import styles from './ContentTabs.module.css';

const TABS = [
  { label: 'Exchanges', value: 'exchanges' },
  { label: 'Dashboard', value: 'dashboard' },
  { label: 'Runtime', value: 'runtime' },
];

interface ContentTabsProps {
  active: TabKey;
  onChange: (tab: TabKey) => void;
}

export function ContentTabs({ active, onChange }: ContentTabsProps) {
  return (
    <div className={styles.wrapper}>
      <Tabs
        tabs={TABS}
        active={active}
        onChange={(v) => onChange(v as TabKey)}
      />
    </div>
  );
}
