import{r as n,j as o,d as i,a2 as l}from"./index-Cziemgsu.js";const c=e=>!!localStorage.getItem(`yamlNotificationClosed${e}`),d=e=>{localStorage.setItem(`yamlNotificationClosed${e}`,"yes")},u=({entity:e,href:t})=>{const[s,r]=n.useState(c(e));if(s)return null;const a=()=>{d(e),r(!0),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},250)};return o.jsxs(i.Notification,{severity:"information",title:"YAML Configuration",onDismiss:a,children:["This is the YAML representation of the ",e,".",o.jsx("br",{}),o.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:["Learn more about ",l(e,2)]})]})};export{u as Y};
