import type { ScaleTime } from 'd3-scale'; import { isNil } from 'ramda'; interface Props { lineColor: string; radius: number; timeTick: Date; xScale: ScaleTime; yPoint: number | null; } const Point = ({ timeTick, yPoint, lineColor, xScale, radius }: Props): JSX.Element | null => { const x = xScale(timeTick); if (isNil(x) || isNil(yPoint)) { return null; } return ( ); }; export default Point;