import type { Meta, StoryObj } from '@storybook/svelte';
import Header from './Header.svelte';

const meta = {
  title: 'UI/Header',
  component: Header,
  tags: ['autodocs'],
  parameters: {
    docs: {
      description: {
        component: 'Seiten-Header mit Navigation (links), CTA-Button und optionalem Mobilmenü.',
      },
    },
  },
  argTypes: {
    mobileMenuOpen: { control: 'boolean' },
  },
} satisfies Meta<Header>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
  args: {
    links: [
      { href: '/ueber-uns', label: 'Über uns' },
      { href: '/aktuelles', label: 'Aktuelles', active: true },
      { href: '/fakten', label: 'Fakten' },
      { href: '/initiativen', label: 'Initiativen' },
    ],
    ctaLabel: 'Mitmachen',
    ctaHref: '/mitmachen',
  },
};
