umami/src/app/(main)/reports/[reportId]/PopupForm.tsx

26 lines
477 B
TypeScript
Raw Normal View History

2023-12-03 11:07:03 +00:00
import { CSSProperties, ReactNode } from 'react';
2023-07-02 05:02:49 +00:00
import classNames from 'classnames';
import styles from './PopupForm.module.css';
2023-12-03 11:07:03 +00:00
export function PopupForm({
className,
style,
children,
}: {
className?: string;
style?: CSSProperties;
children: ReactNode;
}) {
2023-08-17 10:21:20 +00:00
return (
2023-08-17 21:03:41 +00:00
<div
className={classNames(styles.form, className)}
style={style}
onClick={e => e.stopPropagation()}
>
2023-07-02 05:02:49 +00:00
{children}
2023-08-17 10:21:20 +00:00
</div>
2023-07-02 05:02:49 +00:00
);
}
export default PopupForm;