From edea15c845b33848b7b4f63616841e675b74d572 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 15 Apr 2022 22:20:09 +0200
Subject: chore: add an Overview component

---
 .../organisms/layout/overview.stories.tsx          | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 src/components/organisms/layout/overview.stories.tsx

(limited to 'src/components/organisms/layout/overview.stories.tsx')

diff --git a/src/components/organisms/layout/overview.stories.tsx b/src/components/organisms/layout/overview.stories.tsx
new file mode 100644
index 0000000..61d8b35
--- /dev/null
+++ b/src/components/organisms/layout/overview.stories.tsx
@@ -0,0 +1,50 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import OverviewComponent from './overview';
+
+export default {
+  title: 'Organisms/Layout',
+  component: OverviewComponent,
+  argTypes: {
+    cover: {
+      description: 'The overview cover.',
+      type: {
+        name: 'object',
+        required: true,
+        value: {},
+      },
+    },
+    meta: {
+      description: 'The overview metadata.',
+      type: {
+        name: 'object',
+        required: true,
+        value: {},
+      },
+    },
+  },
+} as ComponentMeta<typeof OverviewComponent>;
+
+const Template: ComponentStory<typeof OverviewComponent> = (args) => (
+  <OverviewComponent {...args} />
+);
+
+const cover = {
+  alt: 'picture',
+  height: 480,
+  src: 'http://placeimg.com/640/480/cats',
+  width: 640,
+};
+
+const meta = {
+  publication: { name: 'Illo ut odio:', value: 'Sequi et excepturi' },
+  update: {
+    name: 'Perspiciatis vel laudantium:',
+    value: 'Dignissimos ratione veritatis',
+  },
+};
+
+export const Overview = Template.bind({});
+Overview.args = {
+  cover,
+  meta,
+};
-- 
cgit v1.2.3

