import React from "react"; import { Badge } from "@/components/ui/badge"; import type { AppId } from "@/lib/api/types"; import { APP_IDS, APP_ICON_MAP } from "@/config/appConfig"; interface AppCountBarProps { totalLabel: string; counts: Record; } export const AppCountBar: React.FC = ({ totalLabel, counts, }) => { return (
{totalLabel}
{APP_IDS.map((app) => ( {APP_ICON_MAP[app].label}: {counts[app]} ))}
); };