/** * NOTE: * Seems like component duplicate. * And it has no export usage through the whole project. * TODO: should be checked to be sure in deletion this component safety. * */ //import React, { Fragment, useCallback, useEffect, useRef } from 'react' //import { createPortal } from "react-dom"; //import { CustomizationComponentProps } from '../../../_types'; //import StoreView from '../../_store/StoreView'; //import { useAppDispatch } from '@/core/utils/hooks/useRedux'; //import { initStoreViewHandlers } from '@/core/redux/customization'; // //interface Props extends CustomizationComponentProps { } // //const ViewStoreModal = (props: Readonly): JSX.Element | null => { // const dispatch = useAppDispatch(); // // const storeViewContainer = useRef(null); // const storeViewBtn = useRef(null); // const overlay = useRef(null); // // const close = useCallback(() => { // if (storeViewContainer.current && overlay.current) { // storeViewContainer.current!.classList.remove("!opacity-100", "!scale-100", "!left-[calc(50%-292px/2)]", "!top-[calc(50%-620px/2)]"); // overlay.current!.classList.remove("!opacity-100") // setTimeout(() => { // storeViewContainer.current!.classList.remove("!z-[160]"); // overlay.current!.classList.remove("!z-[150]"); // overlay.current!.classList.add("pointer-events-none"); // }, 200) // } // // eslint-disable-next-line // }, []) // // const open = useCallback(() => { // if (storeViewContainer.current && overlay.current) { // storeViewContainer.current.classList.add("!z-[160]"); // overlay.current.classList.add("!z-[150]"); // overlay.current!.classList.remove("pointer-events-none"); // setTimeout(() => { // storeViewContainer.current!.classList.add("!opacity-100", "!scale-100", "!left-[calc(50%-292px/2)]", "!top-[calc(50%-620px/2)]"); // overlay.current!.classList.add("!opacity-100"); // }, 200) // } // if (typeof window !== "undefined" && localStorage.getItem("change_store_tooltip") !== "hide") { // localStorage.setItem("change_store_tooltip", "hide"); // } // // eslint-disable-next-line // }, []) // // useEffect(() => { // dispatch(initStoreViewHandlers({ close, open })) // // eslint-disable-next-line // }, []); // // return ( // <> // {createPortal( // //
//
// //
// , (window as Window & typeof globalThis)?.document.body as HTMLElement)} // // ) //} // //export default ViewStoreModal