import type { AuthSessionUser } from "@qltysh/fabro-api-client"; import { useAuthMe } from "../lib/queries"; import { Mono, Muted, Panel, PanelSkeleton, Row, UrlValue, } from "../components/settings-panel"; export function meta({}: any) { return [{ title: "Profile — Fabro" }]; } export default function Profile() { const { data: auth } = useAuthMe(); if (!auth) { return (
); } const { user } = auth; return (
); } function BasicsPanel({ user }: { user: AuthSessionUser }) { return (
{user.name}
{user.login} {user.email}
); } function IdentityPanel({ user }: { user: AuthSessionUser }) { return ( {user.idpIssuer ? {user.idpIssuer} : } {user.idpSubject ? {user.idpSubject} : } ); }