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