Anvil/assets/Profile.stories-74fa311e.js

20 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-02-20 15:10:19 +01:00
import{P as o}from"./Profile-5f682b6e.js";import"./utils-09ff0c0e.js";import"./lifecycle-0dd9b729.js";import"./index-5c6b3333.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-f5a025b3.js";import"./spread-8a54911c.js";import"./Avatar-2b9a3926.js";import"./BlockOrReport-e34e260e.js";import"./Created-7ea15c21.js";import"./DisplayName-634e31b8.js";const g={title:"Templates/Profile",component:o,tags:["autodocs"],argTypes:{data:{controls:"object"}}},e={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const r="en-US";return new Intl.DateTimeFormat(r).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var a,t,n;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
args: {
data: {
user: {
avatar: '',
created_at: new Date(),
created_at_formatted: function () {
const locale = 'en-US';
return new Intl.DateTimeFormat(locale).format(new Date());
}(),
created_with: 'Anvil',
display_name: 'Jane Doe',
instance: 'domain.example',
pronoun: 'she/her',
username: 'jane_doe'
}
}
}
}`,...(n=(t=e.parameters)==null?void 0:t.docs)==null?void 0:n.source}}};const P=["Plain"];export{e as Plain,P as __namedExportsOrder,g as default};