portainer/app/react/components/modals/Modal/CloseButton.tsx

26 lines
413 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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,
'close-button absolute right-5 top-4'
)}
onClick={() => onClose()}
>
×
</button>
);
}