import { cn } from "@/lib/utils"; import type { CleanupSummary } from "./task-cleanup-summary"; type TaskCleanupConsequencesProps = { summary: CleanupSummary; compact?: boolean; }; export function TaskCleanupConsequences({ summary, compact = false, }: TaskCleanupConsequencesProps) { const effectsClass = cn( "min-w-0 [overflow-wrap:anywhere]", compact ? "space-y-0.5" : "list-disc space-y-1.5 pl-5", ); const notesClass = cn( "min-w-0 text-muted-foreground [overflow-wrap:anywhere]", compact ? "space-y-0.5" : "space-y-1", ); if (compact) { return ( {summary.effects.map((effect, index) => ( {effect} ))} {summary.notes.length > 0 && ( {summary.notes.map((note, index) => ( {note} ))} )} ); } return (
{summary.notes.length > 0 && (
{summary.notes.map((note, index) => (

{note}

))}
)}
); }