import { createSignal, onMount } from "solid-js"; export default function CommentLock() { const [currentPath, setCurrentPath] = createSignal("/auth/sign-in"); const commentsSvg = ``; onMount(() => { const path = window.location.pathname; const hash = window.location.hash; const redirectTo = hash ? `${path}${hash}` : path; setCurrentPath(`/auth/sign-in?redirect=${encodeURIComponent(redirectTo)}`); }); return ( <>