From 8e4163e3f08e29f38fe87c59d8cfb91e0fa98063 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 29 Aug 2022 19:01:20 +0300 Subject: everything works --- src/components/Image.astro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/components/Image.astro (limited to 'src/components/Image.astro') diff --git a/src/components/Image.astro b/src/components/Image.astro new file mode 100644 index 0000000..07dbadf --- /dev/null +++ b/src/components/Image.astro @@ -0,0 +1,21 @@ +--- +export interface Props { + image: string; + fileType: string; +} + +const { image, fileType } = Astro.props; +--- + +{(image!= null) && ( + (fileType == 'image') ? ( + + {image}
+
+ ) : ( + (fileType == 'image') && ( + + )) +)} \ No newline at end of file -- cgit v1.2.3