tldraw/components/canvas/shapes/rectangle.tsx
2021-05-09 22:22:25 +01:00

13 lines
245 B
TypeScript

import { RectangleShape } from "types"
export default function Rectangle({ point, size }: RectangleShape) {
return (
<rect
x={point[0]}
y={point[1]}
width={size[0]}
height={size[1]}
fill="black"
/>
)
}