import React from "react"; import DatePicker from "./"; const locales = [ "az", "zh-cn", "cs", "nl", "en-gb", "en", "fi", "fr", "de", "de-ch", "el", "it", "ja", "ko", "lv", "pl", "pt", "pt-br", "ru", "sk", "sl", "es", "tr", "uk", "vi", ]; export default { title: "Components/DatePicker", component: DatePicker, argTypes: { themeColor: { control: "color" }, selectedDate: { control: "date" }, openToDate: { control: "date" }, minDate: { control: "date" }, maxDate: { control: "date" }, onChange: { action: "onChange" }, locale: { control: { type: "select", options: locales } }, }, parameters: { docs: { description: { component: "Base DatePicker component", }, }, }, }; const Template = (args) => { console.log(args.locale); return (