Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const WindowInner : React.FC<{ onClick?: () => void }> = (props) => {
const parentSpace = Space.useParentSpace();
return (
<>
{ props.onClick && props.onClick(); parentSpace.startDrag(); }} size={40}>
{Description(`Window title`)}
{Description(`Window content`)}
)
}