mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-20 13:36:20 +00:00
Extract shlink-web-component outside of src folder
This commit is contained in:
15
shlink-web-component/visits/charts/DoughnutChartCard.tsx
Normal file
15
shlink-web-component/visits/charts/DoughnutChartCard.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
Reference in New Issue
Block a user