New admin section.

This commit is contained in:
Mike Cao 2025-07-08 18:40:47 -07:00
parent b78ff3b477
commit ce1f6c3618
44 changed files with 515 additions and 157 deletions

View file

@ -17,13 +17,20 @@ export function LinkButton({
scroll = true,
target,
children,
isDisabled,
...props
}: LinkButtonProps) {
const { dir } = useLocale();
return (
<Button {...props} variant={variant} asChild>
<Link href={href} dir={dir} scroll={scroll} target={target}>
<Button {...props} variant={variant} isDisabled={isDisabled} asChild>
<Link
href={href}
dir={dir}
scroll={scroll}
target={target}
style={{ pointerEvents: isDisabled ? 'none' : undefined }}
>
{children}
</Link>
</Button>