Files
pterodactyl-panel/resources/scripts/components/admin/settings/SettingsTabButton.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

23 lines
598 B
TypeScript

import { cn } from '@/lib/cn';
interface Props {
active: boolean;
onClick: () => void;
children: string;
}
export default function SettingsTabButton({ active, onClick, children }: Props) {
return (
<button
type={'button'}
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>
);
}