"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useFlags=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[l,s]=e.useState(a),t=e.useCallback((e=>s(e)),[]),u=e.useCallback((e=>s((a=>a|e))),[]),r=e.useCallback((e=>(l&e)===e),[l]),g=e.useCallback((e=>s((a=>a&~e))),[]),c=e.useCallback((e=>s((a=>a^e))),[]);return{flags:l,setFlag:t,addFlag:u,hasFlag:r,removeFlag:g,toggleFlag:c}};
//# sourceMappingURL=use-flags.js.map
