import{aT as c,r,j as e}from"./react-vendor-xYZnmIII.js";import{x as a,Z as n,_ as i}from"./ui-components-CQM92IK3.js";import{s as l}from"./theme-colors-CLpwvDr4.js";const h=({children:f})=>{const{props:s}=c(),{frontend:t,direction:o}=s;return r.useEffect(()=>{s.flash.error&&a.error(s.flash.error),(s.flash.success||s.flash.warning)&&a.success(s.flash.success||s.flash.warning)},[s.flash]),r.useEffect(()=>{document.documentElement.setAttribute("dir",o)},[o]),r.useEffect(()=>{t&&l(s.appearance,t.theme_color)},[]),e.jsxs(e.Fragment,{children:[e.jsx(n,{}),e.jsx(i,{children:f})]})};export{h as M};
