erp-platform/ui/src/views/dashboard/WidgetBarChart.tsx

29 lines
601 B
TypeScript
Raw Normal View History

2025-05-06 06:45:49 +00:00
import { Card } from '@/components/ui'
2025-09-27 11:51:05 +00:00
import Chart from '../list/Chart'
2025-05-06 06:45:49 +00:00
const WidgetBarChart = ({
chartKey,
startDateFormat,
endDateFormat,
}: {
chartKey: string
startDateFormat: string
endDateFormat: string
}) => {
return (
<Card className={'col-span-2'}>
<div className="flex items-center justify-between">
<h4>Top Selling</h4>
</div>
<Chart
key={`Chart-${chartKey}`}
2025-09-26 20:34:03 +00:00
listFormCode="Chart-0001"
2025-05-06 06:45:49 +00:00
filter={`{"startDate":"${startDateFormat}", "endDate":"${endDateFormat}"}`}
/>
</Card>
)
}
export default WidgetBarChart