diff --git a/src/components/Header.astro b/src/components/Header.astro index f5560d4..141346f 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,13 +1,16 @@ --- interface Props { className?: string | null; + children?: string | null; } -const { className } = Astro.props; +const { className, children: propText } = Astro.props; +console.log(Astro.props); +const text = propText ?? "undefined behaviors"; ---
- undefined behaviors - undefined behaviors - undefined behaviors + {text} + {text} + {text}
\ No newline at end of file