1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 21:39:40 +02:00
portainer/app/react/components/modals/Modal/CloseButton.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
368 B
TypeScript
Raw Normal View History

import clsx from 'clsx';
import styles from './CloseButton.module.css';
export function CloseButton({
onClose,
className,
}: {
onClose: () => void;
className?: string;
}) {
return (
<button
type="button"
className={clsx(styles.close, className, 'absolute top-2 right-2')}
onClick={() => onClose()}
>
×
</button>
);
}