shlink-web-client/shlink-web-component/visits/charts/DoughnutChartCard.tsx

16 lines
401 B
TypeScript
Raw Normal View History

2023-02-18 12:40:37 +03:00
import type { FC } from 'react';
import type { Stats } from '../types';
import { ChartCard } from './ChartCard';
2023-02-18 13:11:01 +03:00
import { DoughnutChart } from './DoughnutChart';
interface DoughnutChartCardProps {
title: string;
stats: Stats;
}
export const DoughnutChartCard: FC<DoughnutChartCardProps> = ({ title, stats }) => (
<ChartCard title={title}>
<DoughnutChart stats={stats} />
</ChartCard>
);