From 56f6a63ff90d6ad648b99c2d0eea7dd4cd6f888a Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 11 Apr 2025 16:20:14 +0200 Subject: Use MDX instead of markdown --- src/components/Alert.astro | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/components/Alert.astro (limited to 'src/components') diff --git a/src/components/Alert.astro b/src/components/Alert.astro new file mode 100644 index 0000000..0cb5fa2 --- /dev/null +++ b/src/components/Alert.astro @@ -0,0 +1,57 @@ +--- +import { Icon } from "astro-icon/components"; + +interface Props { + type: "note" | "warning"; +} + +const { type } = Astro.props; + +const icon = { + note: "ph:info", + warning: "ph:warning", +}[type]; +--- + + + + -- cgit v1.3