Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import { User } from "lucide-react";
|
|
import type { Avatar } from "@/lib/types";
|
|
import { Badge } from "@/components/ui/badge";
|
|
import { Card, CardContent } from "@/components/ui/card";
|
|
import { avatarLabel } from "@/components/avatars/avatar-utils";
|
|
|
|
interface AvatarCardProps {
|
|
avatar: Avatar;
|
|
}
|
|
|
|
/** Read-only card for one of the caller's custom photo→avatars. */
|
|
export function AvatarCard({ avatar }: AvatarCardProps) {
|
|
const label = avatarLabel(avatar);
|
|
return (
|
|
<Card className="overflow-hidden">
|
|
<CardContent className="flex items-center gap-3 p-4">
|
|
<span className="relative block size-14 shrink-0 overflow-hidden rounded-md bg-secondary">
|
|
{avatar.thumbnail_url ? (
|
|
// eslint-disable-next-line @next/next/no-img-element
|
|
<img
|
|
src={avatar.thumbnail_url}
|
|
alt={label}
|
|
loading="lazy"
|
|
className="size-full object-cover"
|
|
/>
|
|
) : (
|
|
<span className="flex size-full items-center justify-center text-muted-foreground">
|
|
<User className="size-6" aria-hidden />
|
|
</span>
|
|
)}
|
|
</span>
|
|
<div className="min-w-0 flex-1">
|
|
<p className="truncate text-sm font-medium">{label}</p>
|
|
<p className="text-xs text-muted-foreground">Talking photo</p>
|
|
</div>
|
|
<Badge variant="secondary">Yours</Badge>
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|