import { useMemo } from 'react'; import { CORNER_SIZE } from './useDotsPath'; export function useCorners( size: number, matrixLength: number, backgroundColor: string, fillColor: string, uid: string, ) { const dotSize = size / matrixLength; const rectSize = dotSize * CORNER_SIZE; const circleRadius = dotSize * 2; const circleStrokeWidth = dotSize + 1; const corners = useMemo( () => ( ), [ backgroundColor, circleRadius, circleStrokeWidth, fillColor, rectSize, size, uid, ], ); return corners; }