import React from "react"; export type SizeProp = { width?: number; height?: number; }; export type BaseWidgetProps = SizeProp & { baseSize?: SizeProp; width: number; right?: number; top?: number; divideCount?: number; wMargin?: boolean; hMargin?: boolean; className?: string; style: object; children: JSX.Element; }; function BaseWidget({ baseSize, width = 0, height = 0, right = 0, top = 0, divideCount = 24, wMargin = false, hMargin = false, className = "", style = {}, children, }: BaseWidgetProps) { const pieceWidth = (baseSize?.width || 0) / divideCount; const pieceHeight = 1024 / divideCount; return (
{children}
); } export { BaseWidget };