Files
supabase/apps/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx
Joshen Lim 1f2f431b59 Remove clsx library from dashboard (#30311)
* Remove clsx library from dashboard

* PRETTY
2024-11-07 18:45:18 +08:00

28 lines
518 B
TypeScript

import Link from 'next/link'
import { cn } from 'ui'
interface SettingsMenuItemProps {
href: string
label: string
isActive: boolean
}
const SettingsMenuItem = ({ href, label, isActive }: SettingsMenuItemProps) => {
return (
<div>
<Link
href={href}
className={cn(
'text-sm',
isActive ? 'text-foreground' : 'text-foreground-light hover:text-foreground transition'
)}
>
{label}
</Link>
</div>
)
}
export default SettingsMenuItem