import React, { useState } from 'react' import { StoryFn, Meta } from '@storybook/react' import Component from '.' import ObjectViewer from '~/components/ObjectViewer' export default { title: 'Components/IVDateTimePicker', component: Component, parameters: { options: { enableShortcuts: false, }, }, } as Meta const Template: StoryFn = args => { const [value, setValue] = useState() return (
) } export const Default = Template.bind({}) Default.args = {} export const WithValue = Template.bind({}) WithValue.args = { value: new Date(2020, 5, 28, 8, 12), } export const Disabled = Template.bind({}) Disabled.args = { disabled: true, }