import { ComponentMeta, ComponentStory } from "@storybook/react"; import { Page } from "components/Page"; import { useState } from "react"; import { AutomationTime } from "types/automations/common"; import { InputTime } from "./InputTime"; export default { title: 'Inputs/InputTime', component: InputTime, parameters: { actions: { argTypesRegex: '^on.*' } }, } as ComponentMeta; const Template: ComponentStory = args => { const [value, setValue] = useState(undefined); return
{ setValue(t) args.onChange(t) }} />
} export const SimpleText = Template.bind({}) SimpleText.args = { label: "Time Stamp", value: "10" }