'use client'; import { useState } from 'preact/hooks'; import { ErrorText } from '@/comps/ui/field'; import { client } from '@/utils/client'; import { reasonText } from '@/utils/format'; import { AuthPanel } from '@/comps/frame/auth-panel'; export default function LinkPage() { const [error, setError] = useState(''); const [done, setDone] = useState(''); const token = typeof location === 'undefined' ? '' : (new URLSearchParams(location.search).get('token') ?? ''); return ( {done ? null : ( )} ); }