first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-07-29 12:45:59 -04:00
parent 00f486b418
commit 135fd520db
730 changed files with 20176 additions and 93 deletions
+18
View File
@@ -0,0 +1,18 @@
"use client"
import { useState } from 'react';
function useToggle(initValue = false) {
const [value, setValue] = useState(initValue);
return [
value,
{
set: setValue,
toggle: (e) => {
e.preventDefault();
setValue((flag) => !flag);
},
},
];
}
export default useToggle;