mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
"use client";
|
|
|
|
import type { IncomeByCategoryData } from "@/lib/dashboard/categories/income-by-category";
|
|
import { CategoryBreakdownWidgetView } from "./category-breakdown/category-breakdown-widget-view";
|
|
|
|
type IncomeByCategoryWidgetWithChartProps = {
|
|
data: IncomeByCategoryData;
|
|
period: string;
|
|
};
|
|
|
|
export function IncomeByCategoryWidgetWithChart({
|
|
data,
|
|
period,
|
|
}: IncomeByCategoryWidgetWithChartProps) {
|
|
return (
|
|
<CategoryBreakdownWidgetView data={data} period={period} variant="income" />
|
|
);
|
|
}
|