import type { Budget, BudgetCategory, } from "@/features/budgets/components/types"; import type { GoalProgressItem, GoalsProgressData, } from "@/features/dashboard/goals-progress/goals-progress-queries"; import { GoalsProgressList } from "./goals-progress-list"; import { GoalsProgressWidgetDialogs } from "./goals-progress-widget-dialogs"; type GoalsProgressWidgetViewProps = { data: GoalsProgressData; selectedBudget: Budget | null; editOpen: boolean; categories: BudgetCategory[]; defaultPeriod: string; onEdit: (item: GoalProgressItem) => void; onEditOpenChange: (open: boolean) => void; }; export function GoalsProgressWidgetView({ data, selectedBudget, editOpen, categories, defaultPeriod, onEdit, onEditOpenChange, }: GoalsProgressWidgetViewProps) { return (