From 8bd9784acdee6871ad70e86d0d7120299bf76969 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 1 Mar 2022 22:05:08 +0100
Subject: refactor: split posts meta into smaller components

---
 src/components/MetaItems/Website/Website.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 src/components/MetaItems/Website/Website.tsx

(limited to 'src/components/MetaItems/Website/Website.tsx')

diff --git a/src/components/MetaItems/Website/Website.tsx b/src/components/MetaItems/Website/Website.tsx
new file mode 100644
index 0000000..bcf3fc8
--- /dev/null
+++ b/src/components/MetaItems/Website/Website.tsx
@@ -0,0 +1,20 @@
+import { MetaKind } from '@ts/types/app';
+import { useIntl } from 'react-intl';
+import { MetaItem } from '..';
+
+const Website = ({ url, kind }: { url: string; kind: MetaKind }) => {
+  const intl = useIntl();
+
+  return (
+    <MetaItem
+      title={intl.formatMessage({
+        defaultMessage: 'Website:',
+        description: 'Website: website meta label',
+      })}
+      value={<a href={url}>{url}</a>}
+      kind={kind}
+    />
+  );
+};
+
+export default Website;
-- 
cgit v1.2.3

