Files
5chan/src/hooks/useClickForm.js
T

14 lines
323 B
JavaScript
Raw Normal View History

2023-04-08 13:27:17 +02:00
import useGeneralStore from "./stores/useGeneralStore";
2023-03-20 17:08:05 +01:00
const useClickForm = () => {
2023-04-08 13:27:17 +02:00
const { setShowPostForm, setShowPostFormLink } = useGeneralStore.getState();
2023-03-20 17:08:05 +01:00
const handleClickForm = () => {
setShowPostForm(true);
setShowPostFormLink(false);
};
return handleClickForm;
};
2023-03-21 11:17:54 +01:00
export default useClickForm;