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 ( <>
{links .filter((link) => link.condition) .map((link) => ( {link.label} ))}
{userButton}
); };