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 (
<>
REQUIRED
Login with Hugging Face
{children}
>
);
}
export default Login;