---
import BaseLayout from "./BaseLayout.astro";
import BlogSecondaryNav from "../components/BlogSecondaryNav.astro";
import type { WordpressCategory } from "../lib/content/types";

type Props = {
  title: string;
  description: string;
  canonicalPath: string;
  ogImageUrl?: string;
  categories: WordpressCategory[];
  activeCategorySlug?: string;
};

const { categories, activeCategorySlug, ...rest } = Astro.props;
---

<BaseLayout {...rest}>
  <BlogSecondaryNav categories={categories} activeCategorySlug={activeCategorySlug} />
  <slot />
</BaseLayout>

