10 lines
1.1 KiB
JavaScript
10 lines
1.1 KiB
JavaScript
|
import{C as i}from"./Created-7ea15c21.js";import"./utils-09ff0c0e.js";import"./lifecycle-0dd9b729.js";import"./index-5c6b3333.js";const _={title:"Atoms/Created",component:i,tags:["autodocs"],argTypes:{created_at:{control:"date",description:"Date of creation"},created_at_formatted:{control:"text",description:"Localised version of created_at"}}},e={args:{created_at:new Date,created_at_formatted:function(){const d="en-US";return new Intl.DateTimeFormat(d).format(new Date)}()}},t={};var a,r,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
|
||
|
args: {
|
||
|
created_at: new Date(),
|
||
|
created_at_formatted: function () {
|
||
|
const locale = 'en-US';
|
||
|
return new Intl.DateTimeFormat(locale).format(new Date());
|
||
|
}()
|
||
|
}
|
||
|
}`,...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};var n,s,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(c=(s=t.parameters)==null?void 0:s.docs)==null?void 0:c.source}}};const f=["Plain","Missing"];export{t as Missing,e as Plain,f as __namedExportsOrder,_ as default};
|