useBooleanState
A hook that makes it easy to use useState as a boolean type.
function useBooleanState(defaultValue = false): readonly [bool, setTrue, setFalse, toggle];
Example
const [open, openBottomSheet, closeBottomSheet, toggleBottomSheet] = useBooleanState(false);