File size: 613 Bytes
044eef3 dadd5bd 044eef3 dadd5bd 044eef3 dadd5bd 044eef3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import { ReactNode } from 'react';
interface CanvasContainerProps {
children: ReactNode;
scale?: number;
}
export default function CanvasContainer({ children, scale = 1 }: CanvasContainerProps) {
return (
<div style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '100%'
}}>
<div
className="canvas-container"
style={{
display: 'flex',
flexDirection: 'column',
gap: '10px'
}}
>
{children}
</div>
</div>
);
}
|