mirror of
https://github.com/Unleash/unleash.git
synced 2026-02-20 13:57:42 +01:00
The page can only be navigated if you know direct url `/feedback` 
18 lines
548 B
TypeScript
18 lines
548 B
TypeScript
import { type VFC } from 'react';
|
|
import 'chartjs-adapter-date-fns';
|
|
import { ExecutiveSummarySchema } from 'openapi';
|
|
import { LineChart } from '../LineChart/LineChart';
|
|
import { useProjectChartData } from '../useProjectChartData';
|
|
|
|
interface IFlagsProjectChartProps {
|
|
projectFlagTrends: ExecutiveSummarySchema['projectFlagTrends'];
|
|
}
|
|
|
|
export const ProjectHealthChart: VFC<IFlagsProjectChartProps> = ({
|
|
projectFlagTrends,
|
|
}) => {
|
|
const data = useProjectChartData(projectFlagTrends, 'health');
|
|
|
|
return <LineChart data={data} />;
|
|
};
|