import { useState } from 'react';
export function useToggle(defaultValue = false) {
    const [isOn, toggle] = useState(defaultValue);
    return [isOn, () => toggle((value) => !value)];
}
//# sourceMappingURL=toggle.js.map