mirror of
https://github.com/umami-software/umami.git
synced 2026-02-22 05:25:36 +01:00
25 lines
477 B
TypeScript
25 lines
477 B
TypeScript
import { CSSProperties, ReactNode } from 'react';
|
|
import classNames from 'classnames';
|
|
import styles from './PopupForm.module.css';
|
|
|
|
export function PopupForm({
|
|
className,
|
|
style,
|
|
children,
|
|
}: {
|
|
className?: string;
|
|
style?: CSSProperties;
|
|
children: ReactNode;
|
|
}) {
|
|
return (
|
|
<div
|
|
className={classNames(styles.form, className)}
|
|
style={style}
|
|
onClick={e => e.stopPropagation()}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default PopupForm;
|