import { useLocalStorage } from "react-use"; import { defaultHTML } from "./../../../utils/consts"; function Login({ html, children, }: { html?: string; children?: React.ReactNode; }) { const [, setStorage] = useLocalStorage("html_content"); const handleClick = () => { if (html !== defaultHTML) { setStorage(html); } }; return ( <>
ВАЖНО На сегодня лимит использован
{children}
); } export default Login;