import { AppTile } from '#/components/atoms/app-tile.jsx'; import { buttonVariants } from '#/components/atoms/button.jsx'; import { Link } from '#/components/atoms/link.jsx'; import { num } from '#/lib/format.js'; import { cn } from '#/lib/utils.js'; /** A tile linking to one app: its favicon, domain, record and collection counts. */ export function AppCard({ app, href, onNavigate }) { return (
{app.domain}
{app.collections.length} collection {app.collections.length === 1 ? '' : 's'}
{num(app.count)}
record{app.count === 1 ? '' : 's'}
); }