import { ReactNode } from "react"; import { Link } from "react-router-dom"; import classNames from "classnames"; import { Text, ThemeColor, useC } from "../common"; import "./TabBar.css"; export interface Tab { name: string; text: Text; link?: string; onClick?: () => void; } export interface TabsProps { activeTabName?: string; tabs: Tab[]; color?: ThemeColor; actions?: ReactNode; dense?: boolean; className?: string; } export default function TabBar(props: TabsProps) { const { tabs, color, activeTabName, className, dense, actions } = props; const c = useC(); return (