church-website/src/pageComponents/Home/Home.stories.tsx
2024-12-02 10:50:32 +01:00

136 lines
No EOL
2.8 KiB
TypeScript

import { Meta, StoryObj } from '@storybook/react'
import { Home } from './Home'
const meta: Meta<typeof Home> = {
component: Home,
}
type Story = StoryObj<typeof Home>;
export default meta
export const Default: Story = {
args: {
schema: 'base',
events: [
{
id: '1',
title: 'Event 1',
date: '2024-12-02T09:21:24Z',
location: 'St. Richard',
shortDescription: '',
description: {
root: {
type: '',
children: [],
direction: null,
format: '',
indent: 0,
version: 0,
},
},
cancelled: false,
updatedAt: '2024-12-02T09:21:24Z',
createdAt: '2024-12-02T09:21:24Z',
},
{
id: '2',
title: 'Event 2',
date: '2024-12-05T09:21:24Z',
location: 'St. Clara',
shortDescription: '',
description: {
root: {
type: '',
children: [],
direction: null,
format: '',
indent: 0,
version: 0,
},
},
cancelled: false,
updatedAt: '2024-12-02T09:21:24Z',
createdAt: '2024-12-02T09:21:24Z',
},
{
id: '2',
title: 'Event 2',
date: '2024-12-08T09:21:24Z',
location: 'St. Hedwig',
shortDescription: '',
description: {
root: {
type: '',
children: [],
direction: null,
format: '',
indent: 0,
version: 0,
},
},
cancelled: true,
updatedAt: '2024-12-02T09:21:24Z',
createdAt: '2024-12-02T09:21:24Z',
},
],
blog: [
{
id: 'b1',
title: 'Blog 1',
excerpt: '',
content: [],
updatedAt: '',
createdAt: '',
},
{
id: 'b2',
title: 'Blog 2',
excerpt: '',
content: [],
updatedAt: '',
createdAt: '',
},
{
id: 'b3',
title: 'Blog 3',
excerpt: '',
content: [],
updatedAt: '',
createdAt: '',
},
],
worship: [
{
id: 'w1',
date: '2024-12-02T09:21:24Z',
location: {
id: 'c1',
name: 'St Richard',
address: '',
createdAt: '',
updatedAt: ''
},
type: 'MASS',
cancelled: false,
updatedAt: '',
createdAt: '',
},
{
id: 'w1',
date: '2024-12-07T10:00:24Z',
location: {
id: 'c1',
name: 'St Richard',
address: '',
createdAt: '',
updatedAt: ''
},
type: 'MASS',
cancelled: false,
updatedAt: '',
createdAt: '',
},
],
highlights: [],
},
}