%PDF- %PDF-
| Direktori : /home2/rezakur1/ai.rezakurnia.com/assets/ |
| Current File : /home2/rezakur1/ai.rezakurnia.com/assets/useSEO-12az98PJ.js |
import{r as f}from"./index-DUZ8nGC1.js";const d="KURNIADEV AI",m="https://rezakurnia.com";function e(o,r,l){let t=document.head.querySelector(`meta[${o}="${r}"]`);t||(t=document.createElement("meta"),t.setAttribute(o,r),document.head.appendChild(t)),t.setAttribute("content",l)}function y({title:o,description:r="",canonicalPath:l="/",ogType:t="website",image:p=`${m}/logo-kd.png`,jsonLd:c=null}={}){f.useEffect(()=>{const s=document.title,a=o?`${o} — ${d}`:d;document.title=a,e("name","description",r),e("property","og:title",a),e("property","og:description",r),e("property","og:type",t),e("property","og:url",`${m}${l}`),e("property","og:image",p),e("property","og:site_name",d),e("name","twitter:card","summary_large_image"),e("name","twitter:title",a),e("name","twitter:description",r);let i=document.head.querySelector('link[rel="canonical"]');i||(i=document.createElement("link"),i.rel="canonical",document.head.appendChild(i)),i.href=`${m}${l}`;const u="jsonld-page";let n=document.getElementById(u);return c?(n||(n=document.createElement("script"),n.type="application/ld+json",n.id=u,document.head.appendChild(n)),n.textContent=JSON.stringify(c)):n&&n.remove(),()=>{document.title=s}},[o,r,l,t,p,c])}export{y as u};