'use client'; import { useState } from 'react'; import Link from 'next/link'; import { Menu, X } from 'lucide-react'; import { Logo } from '@/components/logo'; import { ThemeToggle } from '@/components/theme-toggle'; import { Button } from '@/components/ui/button'; export type NavigationLink = { label: string; url: string }; export type HeaderProps = { siteName?: string; logoUrl?: string; links?: NavigationLink[]; ctaLabel?: string; ctaUrl?: string; showThemeToggle?: 'yes' | 'no'; sticky?: 'yes' | 'no'; }; export default function Header({ siteName = 'Your Company', logoUrl = '', links = [], ctaLabel = 'Get started', ctaUrl = '/#pricing', showThemeToggle = 'yes', sticky = 'yes', }: HeaderProps) { const [open, setOpen] = useState(false); return (
{showThemeToggle === 'yes' && } {ctaLabel && ( )}
{open && ( )}
); }