21 lines
510 B
TypeScript
21 lines
510 B
TypeScript
import { Loading, Empty, Failure, Success } from './ProjectReactionsCell'
|
|
import { standard } from './ProjectReactionsCell.mock'
|
|
|
|
export const loading = () => {
|
|
return Loading ? <Loading /> : null
|
|
}
|
|
|
|
export const empty = () => {
|
|
return Empty ? <Empty /> : null
|
|
}
|
|
|
|
export const failure = () => {
|
|
return Failure ? <Failure error={new Error('Oh no')} /> : null
|
|
}
|
|
|
|
export const success = () => {
|
|
return Success ? <Success {...standard()} /> : null
|
|
}
|
|
|
|
export default { title: 'Cells/ProjectReactionsCell' }
|