import { Graphics } from "@pixi/react"; interface Props { mouseCoords: Position; radius: number; isDark: boolean; } function Cursor({ mouseCoords, radius, isDark }: Props) { const isOddRadius = radius % 2 !== 0; const halfSize = Math.floor(radius / 2); const offset = isOddRadius ? -halfSize : 0; const size = radius * 16; return ( { g.clear(); g.lineStyle(1, isDark ? 0xffffff : 0x000000, 1); g.drawRect(0, 0, size, size); }} /> ); } export default Cursor;