import type { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { Hint, Legend, DateInput } from "../../.."; const meta: Meta = { title: "DateInput", component: DateInput, }; export default meta; type Story = StoryObj; const primary: Story = { name: "Primary date input", render: (_args) => ( When was your passport issued? For example, 27 3 2007 ), }; const twoQuestions: Story = { name: "Two questions date input", render: (_args) => ( When was your passport issued? For example, 27 3 2007 ), }; const birthday: Story = { name: "Birthday date input", render: (_args) => ( What is your date of birth? For example, 31 3 1980 ), }; const errorExample: Story = { name: "Error date input", render: (_args) => ( When was your passport issued? For example, 27 3 2007 ), }; const errorExampleYear: Story = { name: "Error year date input", render: (_args) => ( When was your passport issued? For example, 27 3 2007 ), }; export { primary, twoQuestions, birthday, errorExample, errorExampleYear };