import{u as a,j as e}from"./index-DlcHsm52.js";import{g as d,A as l,C as m,e as u,o as c,f as p}from"./IdurarOs-j0IoqkpA.js";import{b as x}from"./ErpApp-7VdZNpBd.js";function h({permission:s,children:r,fallback:t=null}){const n=a(d);return x(n,s)?r:t||e.jsx(l,{type:"warning",showIcon:!0,message:"You do not have permission to access this workflow."})}const{Title:j,Text:f}=p;function E({title:s,description:r,children:t,extra:n,permission:i}){const o=e.jsx("div",{style:{padding:"24px 32px",width:"100%"},children:e.jsxs(m,{direction:"vertical",size:20,style:{width:"100%"},children:[e.jsxs("div",{children:[e.jsx(j,{level:2,style:{marginBottom:4},children:s}),e.jsx(f,{type:"secondary",children:r})]}),e.jsx(u,{extra:n,children:t||e.jsx(c,{image:c.PRESENTED_IMAGE_SIMPLE})})]})});return i?e.jsx(h,{permission:i,children:o}):o}export{E as W};
