import{d as e,l as t,s as n}from"./hooks.module-BrXTvcfS.js";import{R as r}from"./content_renderer-DOj8g78V.js";import{a as i,z as a}from"./i18n-BaLR3UdQ.js";import{t as o}from"./jsxRuntime.module-Cao1NCKs.js";import{t as s}from"./ActionButton-DqIfNt93.js";import{t as c}from"./Button-Du0dYm4Z.js";import{t as l}from"./Admonition-C4vnc1XO.js";e();function u({title:e,description:u,className:d,illustration:f,children:p,footer:m,error:h,errorId:g,onBack:_}){let[v,y]=n(!!h);return t(()=>{h&&y(!0)},[h,g]),o(`div`,{className:r(`page`,d,{contentless:!p}),children:[_&&o(c,{className:`back-button`,icon:`bx bx-arrow-back`,text:i(`setup.button-back`),onClick:_,kind:`lowProfile`}),h&&v&&o(l,{className:`page-error`,type:`caution`,children:[o(s,{icon:`bx bx-x`,text:i(`setup.dismiss-error`),onClick:()=>y(!1)}),a(h)]}),f,o(`h1`,{children:e}),u&&o(`p`,{class:`page-description`,children:u}),p&&o(`main`,{children:p}),m&&o(`footer`,{children:m})]})}export{u as t};