mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-27 11:28:22 +03:00
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
|
import { FC } from 'react';
|
||
|
import { Stats } from '../types';
|
||
|
import { DoughnutChart } from './DoughnutChart';
|
||
|
import { ChartCard } from './ChartCard';
|
||
|
|
||
|
interface DoughnutChartCardProps {
|
||
|
title: string;
|
||
|
stats: Stats;
|
||
|
}
|
||
|
|
||
|
export const DoughnutChartCard: FC<DoughnutChartCardProps> = ({ title, stats }) => (
|
||
|
<ChartCard title={title}>
|
||
|
<DoughnutChart stats={stats} />
|
||
|
</ChartCard>
|
||
|
);
|