1
0

Part browsing

This commit is contained in:
Ahmed Al-Taiar
2023-11-04 17:32:14 -04:00
parent af93899796
commit 53e0070fd8
28 changed files with 817 additions and 62 deletions

View File

@ -0,0 +1,34 @@
import type { Meta, StoryObj } from '@storybook/react'
import { Loading, Empty, Failure, Success } from './PartsCell'
import { standard } from './PartsCell.mock'
const meta: Meta = {
title: 'Cells/PartsCell',
}
export default meta
export const loading: StoryObj<typeof Loading> = {
render: () => {
return Loading ? <Loading /> : <></>
},
}
export const empty: StoryObj<typeof Empty> = {
render: () => {
return Empty ? <Empty /> : <></>
},
}
export const failure: StoryObj<typeof Failure> = {
render: (args) => {
return Failure ? <Failure error={new Error('Oh no')} {...args} /> : <></>
},
}
export const success: StoryObj<typeof Success> = {
render: (args) => {
return Success ? <Success {...standard()} {...args} /> : <></>
},
}