import{r as i,h as d,j as e,$ as l,S as a,y as c}from"./app-DZfefqwY.js";/* empty css            */function b(){const[o,s]=i.useState(!1),{log:t}=d(),r=()=>{a.visit(route("test.dashboard"),{method:"get",only:["message"],data:{mode:"admin"},onStart:()=>{t("loading...")},onSuccess:()=>{},onFinish:n=>{c.success("Berhasil Horee!!"),t(n)}})};return e.jsxs("div",{className:"p-6 flex flex-col gap-2",children:[e.jsx("h1",{className:"text-xl font-semibold mb-4",children:"Halaman Home"}),e.jsx("button",{onClick:r,className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700",children:"Visit ke Dashboard Test"}),e.jsx(l,{href:"/test/dashboard",className:"px-4 py-2 text-center items-center justify-center bg-blue-600 text-white rounded hover:bg-blue-700",children:"Link ke Dashboard"}),e.jsx("div",{children:e.jsx("button",{onClick:()=>a.visit("/test/dashboard",{only:["stats"],preserveState:!0,onStart:()=>s(!0),onFinish:()=>s(!1)}),children:o?"Loading...":"Pergi ke Dashboard"})})]})}export{b as default};
