Anvil/assets/Profile.stories-34ceeae4.js

20 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-02-23 14:08:28 +01:00
import{P as o}from"./Profile-b350073d.js";import"./utils-09ff0c0e.js";import"./lifecycle-9898a056.js";import"./index-d94d5794.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-1d8754be.js";import"./spread-8a54911c.js";import"./Avatar-ef944b42.js";import"./BlockOrReport-d05b9a91.js";import"./Created-e62609b4.js";import"./DisplayName-0aad4912.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:`{
2024-02-20 15:10:19 +01:00
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};