feat: initial commit

This commit is contained in:
2026-04-09 20:52:10 -03:00
commit 1a92cc6c11
86 changed files with 19533 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import ThemeToggle from '@/ui/components/internal/theme-toggle';
import Link from 'next/link';
export type HeaderLinksProps = {
links: Array<{
href: string;
label: string;
condition: boolean;
}>;
};
export type ProfileButtonProps = {
userButton: React.ReactNode;
};
export const BaseDesktopHeader = ({
links,
userButton,
}: HeaderLinksProps & ProfileButtonProps) => {
return (
<>
<div className='flex w-3/5 flex-row items-center justify-around align-middle'>
{links
.filter((link) => link.condition)
.map((link) => (
<Link
key={link.href}
href={link.href}
className='text-xl font-normal transition-colors hover:font-bold hover:text-primary'
>
{link.label}
</Link>
))}
</div>
<div className='flex items-center space-x-4'>
<ThemeToggle></ThemeToggle>
{userButton}
</div>
</>
);
};