2023-06-01 18:28:22 +02:00
|
|
|
import React from 'react'
|
|
|
|
|
2023-06-04 17:28:02 +02:00
|
|
|
export const Grid = ({ stack, stackName }) => (
|
2023-06-01 18:28:22 +02:00
|
|
|
<rect
|
2023-06-04 17:28:02 +02:00
|
|
|
x={stack.topLeft.x}
|
|
|
|
y={stack.topLeft.y}
|
|
|
|
width={stack.width}
|
|
|
|
height={stack.height}
|
2023-06-01 18:28:22 +02:00
|
|
|
className="grid"
|
2023-06-04 17:28:02 +02:00
|
|
|
fill={'url(#grid-' + stackName + ')'}
|
2023-06-01 18:28:22 +02:00
|
|
|
/>
|
|
|
|
)
|