import { Row } from "./layout";
import { COLORS, TYPOGRAPHY } from "./constants";
interface LabelPillProps {
name: string;
color: string;
}
function LabelPill({ name, color }: LabelPillProps) {
return (
{name}
);
}
interface LabelListProps {
labels: Array<{ name: string; color: string }>;
max?: number;
}
export function LabelList({ labels, max = 5 }: LabelListProps) {
if (labels.length === 0) return null;
return (
{labels.slice(0, max).map((label, i) => (
))}
);
}