"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../_virtual/jsx-runtime.js"),r=require("react"),n=require("../../../Button/index.js"),m=require("../../../../hooks/useKeyPress.js"),x=require("./styles.js"),v=require("../header/index.js");function f({narrow:u=!1,dismissText:i,confirmText:o,onConfirm:a,onDismiss:c,"data-testid":d}){const e=r.useRef(null),l=m.useKeyPress("Tab",e);return r.useEffect(()=>{if(e.current===document.activeElement){const s=document.getElementsByClassName(v.previousMonthButton)[0];s&&s.focus()}},[l]),t.jsxRuntimeExports.jsxs(x.Wrapper,{narrow:u,"data-testid":d,children:[t.jsxRuntimeExports.jsx(n.Button,{variant:"ghost",size:"medium",onClick:c,children:i}),t.jsxRuntimeExports.jsx(n.Button,{size:"medium",onClick:a,ref:e,children:o})]})}exports.ActionButtons=f;
