mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-10-24 03:33:09 +02:00
12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
|
import Draggable from 'react-draggable';
|
||
|
import { DraggableWindowProps } from './DraggableWindow.types';
|
||
|
|
||
|
export function DraggableWindow(props: DraggableWindowProps): JSX.Element
|
||
|
{
|
||
|
return (
|
||
|
<Draggable handle={ props.handle } bounds="parent" { ...props.draggableOptions }>
|
||
|
{ props.children }
|
||
|
</Draggable>
|
||
|
);
|
||
|
}
|