import { useState } from 'react';
export const useScreenControl = (e) => {
    const [splitScreen, setSplitScreen] = useState(false);
    const [width, setWidth] = useState(0);
    const [expanded, setExpanded] = useState(false);
    const [dialogOpen, setDialogOpen] = useState(false);
    const [sideSheetOpen, setSideSheetOpen] = useState(false);
    const [sideSheetStatus, setSideSheetStatus] = useState(false);
    const sideBarControl = (e) => {
        setSplitScreen(e === 0 ? false : true);
        setExpanded(e === 0 ? false : true);
        setWidth(e === 0 ? 0 : 300);
        setDialogOpen(false);
    };
    const updateWidth = (e) => {
        setWidth(e);
    };
    const handleSideSheet = (bol) => {
        setSideSheetOpen(bol);
    };
    return [splitScreen, width, expanded, dialogOpen, sideSheetOpen, sideSheetStatus, sideBarControl, updateWidth, setDialogOpen, handleSideSheet];
};
export const useNoticeUpdate = () => {
    const [noticeState, setNoticeState] = useState({});
    const [alertState, setAlertState] = useState({});
    const sendNotice = (alertType, alertMessage, alertButton, messageType, show) => {
        console.log('UPDATE NOTICE', alertType, alertMessage, alertButton, messageType, show);
        messageType === 'toast' && setNoticeState({
            noticeType: alertType,
            noticeMessage: alertMessage,
            noticeButton: alertButton,
            messageType: messageType,
            show: show
        });
        messageType === 'alert' && setAlertState({
            alertType: alertType,
            alertMessage: alertMessage,
            alertButton: alertButton,
            messageType: messageType,
            show: show
        });
    };
    return [noticeState, alertState, setAlertState, setNoticeState, sendNotice];
};
//# sourceMappingURL=gridVisualizationFunctions.js.map