mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 19:01:47 +00:00
23 lines
530 B
TypeScript
23 lines
530 B
TypeScript
"use client";
|
|
|
|
import type { ExpensesByCategoryData } from "@/lib/dashboard/categories/expenses-by-category";
|
|
import { CategoryBreakdownWidgetView } from "./category-breakdown/category-breakdown-widget-view";
|
|
|
|
type ExpensesByCategoryWidgetWithChartProps = {
|
|
data: ExpensesByCategoryData;
|
|
period: string;
|
|
};
|
|
|
|
export function ExpensesByCategoryWidgetWithChart({
|
|
data,
|
|
period,
|
|
}: ExpensesByCategoryWidgetWithChartProps) {
|
|
return (
|
|
<CategoryBreakdownWidgetView
|
|
data={data}
|
|
period={period}
|
|
variant="expense"
|
|
/>
|
|
);
|
|
}
|