waveterm/frontend/app/element/windowdrag.tsx
Mike Sawka a85b658cd7
migrate to react 19 (#2272)
migrate to react 19 + fix lingering typescript errors and weirdness.
2025-08-25 21:17:15 -07:00

24 lines
607 B
TypeScript

// Copyright 2025, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
import clsx from "clsx";
import React, { forwardRef } from "react";
import "./windowdrag.scss";
interface WindowDragProps {
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}
const WindowDrag = forwardRef<HTMLDivElement, WindowDragProps>(({ children, className, style }, ref) => {
return (
<div ref={ref} className={clsx(`window-drag`, className)} style={style}>
{children}
</div>
);
});
WindowDrag.displayName = "WindowDrag";
export { WindowDrag };