import { useState } from 'react'; import { useAuth } from '../../../stores/auth'; export default function Login() { const [value, setValue] = useState(''); const setToken = useAuth(s => s.setToken); function handleSubmit(e: React.FormEvent) { e.preventDefault(); if (value.trim()) { setToken(value.trim()); window.location.href = '/admin'; } } return (

Admin Login

Enter your admin token to access the dashboard.

setValue(e.target.value)} className="w-full bg-crust border border-surface1 rounded-lg px-4 py-3 text-text focus:outline-none focus:border-mauve transition-colors" placeholder="••••••••••••" />
); }