import{r as o,j as s}from"./app-BGey7YPf.js";import{a as n,B as r}from"./button-D5r5edT8.js";import{X as m}from"./x-C4WIHhXm.js";import{L as c,S as d}from"./save-Bm3_KHjE.js";const l=o.forwardRef(({reset:t,processing:a},e)=>s.jsxs("div",{ref:e,className:n("flex justify-end gap-2 pt-4"),children:[s.jsxs(r,{variant:"destructive",type:"button",onClick:i=>{i.preventDefault(),t()},className:"transition-colors duration-200 ease-in-out hover:bg-red-600 focus:ring-2 focus:ring-red-500",children:[s.jsx(m,{className:"mr-2"})," Batal"]}),s.jsxs(r,{type:"submit",disabled:a,className:"transition-colors duration-200 ease-in-out hover:bg-primary-700 focus:ring-2 focus:ring-primary-500 disabled:cursor-not-allowed disabled:opacity-50",children:[a?s.jsx(c,{className:"animate-spin mr-2"}):s.jsx(d,{className:"mr-2"}),"Simpan"]})]}));l.displayName="ButtonSubmitEnd";export{l as B};
