Files

23 lines
596 B
TypeScript
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
import { cn } from '@/lib/cn';
interface Props {
active: boolean;
onClick: () => void;
children: string;
}
export default function SettingsTabButton({ active, onClick, children }: Props) {
return (
<button
2026-10-08 16:53:20 -04:00
type='button'
2026-10-05 18:10:18 -04:00
onClick={onClick}
className={cn(
'px-4 py-2 text-sm uppercase tracking-wide border-b-2 transition-colors duration-150',
active ? 'border-primary text-foreground' : 'border-transparent text-muted-foreground'
)}
>
{children}
</button>
);
}