import{r as m}from"./index-B8VidBSF.js";const g=({type:n="organization",data:e})=>(m.useEffect(()=>{var s,r,p;const c={organization:{"@context":"https://schema.org","@type":"Organization",name:"LionPost",url:"https://lionpost.com",logo:"https://lionpost.com/logo.png",description:"UK-based digital greeting card platform for sending unlimited personalised ecards.",sameAs:["https://www.facebook.com/61583141875504","https://www.instagram.com/lionpostcards","https://www.linkedin.com/company/lionpost"]},website:{"@context":"https://schema.org","@type":"WebSite",name:"LionPost",url:"https://lionpost.com",description:"Create beautiful personalised e-cards with AI-powered themes"},product:{"@context":"https://schema.org","@type":"Product",name:"LionPost Unlimited Ecards",description:"Unlimited personalised e-cards subscription with AI-powered themes",brand:{"@type":"Brand",name:"LionPost"},offers:{"@type":"Offer",price:"3.00",priceCurrency:"GBP",availability:"https://schema.org/InStock",priceValidUntil:"2026-12-31",url:"https://lionpost.com/auth"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",reviewCount:"127"}},article:{"@context":"https://schema.org","@type":"Article",headline:(e==null?void 0:e.headline)||"LionPost Article",description:(e==null?void 0:e.description)||"Read the latest from LionPost",image:(e==null?void 0:e.image)||"https://lionpost.com/lionpost-logo-small.webp",datePublished:e==null?void 0:e.datePublished,dateModified:(e==null?void 0:e.dateModified)||(e==null?void 0:e.datePublished),author:(e==null?void 0:e.author)||{"@type":"Organization",name:"LionPost"},publisher:{"@type":"Organization",name:"LionPost",logo:{"@type":"ImageObject",url:"https://lionpost.com/lionpost-logo-small.webp"}}},faq:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:((s=e==null?void 0:e.questions)==null?void 0:s.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}})))||[]},howto:{"@context":"https://schema.org","@type":"HowTo",name:(e==null?void 0:e.name)||"How to Create a Digital Greeting Card",description:(e==null?void 0:e.description)||"Create personalized e-cards with LionPost",step:((r=e==null?void 0:e.steps)==null?void 0:r.map((t,i)=>({"@type":"HowToStep",position:i+1,name:t.name,text:t.text})))||[],tool:{"@type":"HowToTool",name:"LionPost Card Editor"}},breadcrumb:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:((p=e==null?void 0:e.items)==null?void 0:p.map((t,i)=>({"@type":"ListItem",position:i+1,name:t.name,item:t.url})))||[]}},l=e||c[n];let o=document.querySelector('script[type="application/ld+json"]');return o||(o=document.createElement("script"),o.type="application/ld+json",document.head.appendChild(o)),o.textContent=JSON.stringify(l),()=>{o&&o.parentNode&&o.parentNode.removeChild(o)}},[n,e]),null);export{g as S};