mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
import { Dot } from "recharts";
|
|
|
|
interface CustomDotProps {
|
|
cx?: number;
|
|
cy?: number;
|
|
color: string;
|
|
isFaded: boolean;
|
|
}
|
|
|
|
export const CustomDot = ({ cx, cy, color, isFaded }: CustomDotProps) => {
|
|
if (cx === undefined || cy === undefined) return null;
|
|
|
|
return <Dot cx={cx} cy={cy} r={4} fill={color} opacity={isFaded ? 0.2 : 1} />;
|
|
};
|