"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useActiveWithFallback=void 0;const react_1=require("react");function useActiveWithFallback(e,t){var c;const i=e.find((({key:e})=>e===t)),[a,r]=(0,react_1.useState)((null==i?void 0:i.key)||(null===(c=e[0])||void 0===c?void 0:c.key));return(0,react_1.useEffect)((()=>{i&&r(i.key)}),[i]),a}exports.useActiveWithFallback=useActiveWithFallback;
//# sourceMappingURL=useActiveWithFallback.js.map