diff --git a/src/components/content/Country.astro b/src/components/content/Country.astro new file mode 100644 index 00000000..86ffa9a5 --- /dev/null +++ b/src/components/content/Country.astro @@ -0,0 +1,38 @@ +--- +import { getIconURL, type IconName } from "@sumup-oss/icons"; + +interface Props { + code: string; + name: string; +} + +const { code, name } = Astro.props; +const icon = `flag_${code.toLowerCase()}` as IconName; +--- + + + {name} + + + diff --git a/src/components/content/ReaderHero.astro b/src/components/content/ReaderHero.astro index 57052963..97f94eae 100644 --- a/src/components/content/ReaderHero.astro +++ b/src/components/content/ReaderHero.astro @@ -15,7 +15,7 @@ const { alt, src, srcset, width, height } = Astro.props;