import{r,u as c,j as e}from"./index-RapqkS1n.js";import{F as l}from"./ArrowLeftIcon-B51iGo7A.js";function m({title:s,titleId:t,...a},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},a),s?r.createElement("title",{id:t},s):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0-10.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.25-8.25-3.286Zm0 13.036h.008v.008H12v-.008Z"}))}const i=r.forwardRef(m),u=({title:s="Access Denied",message:t="You don't have permission to access this page.",showBackButton:a=!0,backUrl:o="/staff/dashboard"})=>{const n=c();return e.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:e.jsxs("div",{className:"text-center",children:[e.jsx(i,{className:"mx-auto h-24 w-24 text-red-500"}),e.jsx("h2",{className:"mt-6 text-3xl font-bold tracking-tight text-gray-900",children:s}),e.jsx("p",{className:"mt-2 text-sm text-gray-600",children:t})]})}),e.jsx("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:e.jsx("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mb-6",children:e.jsx("div",{className:"mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-red-100",children:e.jsx(i,{className:"h-8 w-8 text-red-600"})})}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Permission Required"}),e.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"You need the appropriate permissions to view this content. Please contact your administrator if you believe this is an error."}),a&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("button",{onClick:()=>n(o),className:"w-full flex justify-center items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-[#f5b900] hover:bg-[#61ce70] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#ff6b00] transition-colors duration-200",children:[e.jsx(l,{className:"h-4 w-4 mr-2"}),"Go Back to Dashboard"]}),e.jsx("button",{onClick:()=>n(-1),className:"w-full flex justify-center items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#ff6b00] transition-colors duration-200",children:"Go Back to Previous Page"})]})]})})})]})};export{u as A};
