import React, { useState } from 'react'; import { api } from './api.js'; import { KeysCard } from './AgentPlatform.jsx'; import { toast } from './toast.js'; function avatarStyle(name) { let h = 0; for (const ch of String(name)) h = (h * 31 + ch.charCodeAt(0)) >>> 0; const a = h % 360, b = (a + 70 + h % 90) % 360; return { background: `linear-gradient(135deg, hsl(${a} 68% 46%), hsl(${b} 64% 32%))` }; } export default function Account({ auth, setRoute }) { const [cur, setCur] = useState(''); const [nw, setNw] = useState(''); const [err, setErr] = useState(''); if (!auth.ready) return
Loading…
Log in to manage your profile and password, mint agent keys, and view your showcases.
{u.email}
{u.role}