maccounter
13 строк · 437.0 Байт
1import { useAppSelector } from '@store/hooks'
2import React from 'react'
3import Widget from '@components/Widget/Widget'
4import { WidgetProps } from '@components/Widget/WidgetProps'
5
6const WidgetContainer: React.FC<Pick<WidgetProps, 'title'>> = ({ title }) => {
7const expensesData = useAppSelector((state) => state.expenses)
8return (
9<Widget title={title} expenses={expensesData} />
10)
11}
12
13export default WidgetContainer
14