import { TLShape } from '@tldraw/tlschema' import classNames from 'classnames' import { forwardRef, ReactNode } from 'react' /** @public */ export interface TLShapeWrapperProps extends React.HTMLAttributes { /** The shape being rendered. */ shape: TLShape /** Whether this is the shapes regular, or background component. */ isBackground: boolean /** The shape's rendered component. */ children: ReactNode } /** @public @react */ export const DefaultShapeWrapper = forwardRef(function DefaultShapeWrapper( { children, shape, isBackground, ...props }: TLShapeWrapperProps, ref: React.Ref ) { const isFilledShape = 'fill' in shape.props && shape.props.fill !== 'none' return (
{children}
) })