import t from"react";import{Helmet as m}from"@dr.pogodin/react-helmet";import{combineUrls as a}from"@redocly/theme/core/utils";import{getMetaTagsAttributes as s}from"../utils/get-meta-tags-attributes";function g(l){const{seo:e,slug:r}=l;if(!e)return null;const n=s(e);return t.createElement(m,null,t.createElement("title",null,e.title),e.siteUrl?t.createElement("link",{rel:"canonical",href:a(e.siteUrl,r)}):null,e.jsonLd?t.createElement("script",{type:"application/ld+json"},JSON.stringify(e.jsonLd)):null,n.map((i,o)=>t.createElement("meta",{key:o,...i})))}export{g as SeoTags};
