diff --git a/src/components/Header.astro b/src/components/Header.astro index a21775c..c4d755f 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,6 +1,13 @@ --- +import { getEntry } from "astro:content"; import { IoSearch } from "react-icons/io5"; import { PiTreeBold } from "react-icons/pi"; + +const { area } = Astro.props; + +const { + data: { backgroundColor }, +} = await getEntry(area.collection, area.id); --- +
+