2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{j as t}from"./jsx-runtime-D_zvdyIk.js";function m({firstName:r,lastName:n,email:o,address:s}){const i=e=>[e.postcode?`〒${e.postcode}`:"",e.prefectureJa||"",e.cityJa||"",e.townJa||"",e.streetAddress||"",e.buildingName||"",e.roomNumber||""].filter(Boolean).join("");return t.jsxs("div",{className:"p-4 rounded-lg bg-muted/50 border border-border",children:[t.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Account details:"}),t.jsxs("p",{className:"font-medium text-foreground",children:[r," ",n]}),t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:o}),s&&t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i(s)})]})}m.__docgenInfo={description:"",methods:[],displayName:"AccountInfoDisplay",props:{firstName:{required:!0,tsType:{name:"string"},description:""},lastName:{required:!0,tsType:{name:"string"},description:""},email:{required:!0,tsType:{name:"string"},description:""},address:{required:!1,tsType:{name:"union",raw:"AddressData | null | undefined",elements:[{name:"AddressData"},{name:"null"},{name:"undefined"}]},description:""}}};export{m as A};
|