import{jsxs as t,jsx as e}from"react/jsx-runtime";import{A as l}from"./app-logo-icon-beRg1XGs.js";import{usePage as i,Link as n}from"@inertiajs/react";import{Toaster as m}from"sonner";function d({children:s,title:r,description:o}){const{appName:a,appLogoUrl:c}=i().props;return t("div",{className:"bg-background flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10",children:[e(m,{position:"top-right",richColors:!0,closeButton:!0,duration:4e3}),e("div",{className:"w-full max-w-md",children:t("div",{className:"flex flex-col gap-8",children:[t("div",{className:"flex flex-col items-center gap-4",children:[t(n,{href:route("home"),className:"flex flex-col items-center gap-2 font-medium",children:[e("div",{className:"mb-1 flex h-32 w-32 items-center justify-center rounded-md",children:c?e("img",{src:c,alt:a||"Logo",className:"size-32 object-contain"}):e(l,{className:"size-32 fill-current text-[var(--foreground)] dark:text-white"})}),e("span",{className:"sr-only",children:r})]}),t("div",{className:"space-y-2 text-center",children:[e("h1",{className:"text-xl font-medium",children:r}),e("p",{className:"text-muted-foreground text-center text-sm",children:o})]})]}),s]})})]})}function x({children:s,title:r,description:o,...a}){return e(d,{title:r,description:o,...a,children:s})}export{x as A};
