mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
27 lines
661 B
TypeScript
27 lines
661 B
TypeScript
import { ComponentStory, ComponentMeta } from '@storybook/react'
|
|
import { EmptyLibrary } from '../components/templates/homeFeed/EmptyLibrary'
|
|
|
|
export default {
|
|
title: 'Components/EmptyLibraryStory',
|
|
component: EmptyLibrary,
|
|
argTypes: {
|
|
position: {
|
|
description: 'The empty library component',
|
|
control: { type: 'select' },
|
|
},
|
|
},
|
|
} as ComponentMeta<typeof EmptyLibrary>
|
|
|
|
export const EmptyLibraryStory: ComponentStory<typeof EmptyLibrary> = (
|
|
args: any
|
|
) => {
|
|
return (
|
|
<EmptyLibrary
|
|
layoutType="GRID_LAYOUT"
|
|
searchTerm=""
|
|
onAddLinkClicked={() => {
|
|
console.log('onAddLinkClicked')
|
|
}}
|
|
/>
|
|
)
|
|
}
|