import type { Meta } from "@storybook/react"; import { Toast } from "../src/components/Toast/Toast"; import { useState } from "react"; const meta = { title: "Overlays/Toast", component: Toast, parameters: { layout: "fullscreen", inlineStories: false, iframeHeight: "425px", }, tags: ["autodocs"], argTypes: {}, args: {}, } satisfies Meta; export default meta; const Template = () => { const [time, setTime] = useState(0); const onClick = () => setTime(Date.now()); return (
); }; export const Success = Template.bind({}); const ErrorTemplate = () => { const [time, setTime] = useState(0); const onClick = () => setTime(Date.now()); return (
); }; export const Error = ErrorTemplate.bind({});