mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-24 01:48:18 +03:00
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import type { FC } from 'react';
|
|
import type { Stats } from '../types';
|
|
import { ChartCard } from './ChartCard';
|
|
import { DoughnutChart } from './DoughnutChart';
|
|
|
|
interface DoughnutChartCardProps {
|
|
title: string;
|
|
stats: Stats;
|
|
}
|
|
|
|
export const DoughnutChartCard: FC<DoughnutChartCardProps> = ({ title, stats }) => (
|
|
<ChartCard title={title}>
|
|
<DoughnutChart stats={stats} />
|
|
</ChartCard>
|
|
);
|