import { RiPencilLine } from "@remixicon/react"; import { PercentageChangeIndicator } from "@/features/dashboard/components/percentage-change-indicator"; import { clampGoalProgress, formatGoalProgressPercentage, } from "@/features/dashboard/goals-progress/goals-progress-helpers"; import type { GoalProgressItem as GoalProgressItemData } from "@/features/dashboard/goals-progress/goals-progress-queries"; import { CategoryIconBadge } from "@/shared/components/entity-avatar"; import MoneyValues from "@/shared/components/money-values"; import { Button } from "@/shared/components/ui/button"; import { Progress } from "@/shared/components/ui/progress"; type GoalProgressItemProps = { item: GoalProgressItemData; index: number; onEdit: (item: GoalProgressItemData) => void; }; export function GoalProgressItem({ item, index, onEdit, }: GoalProgressItemProps) { const progressValue = clampGoalProgress(item.usedPercentage, 0, 100); const percentageDelta = item.usedPercentage - 100; const isExceeded = item.status === "exceeded"; return (

{item.categoryName}

{" "} de{" "}

); }