openreplay/frontend/app/components/ui/CloseButton/CloseButton.tsx
Андрей Бабушкин 2b1a9f3378 add locales and lint the project
2025-03-05 16:09:18 +01:00

24 lines
454 B
TypeScript

import React from 'react';
import { Icon } from 'UI';
export default function CloseButton({
size,
onClick,
className = '',
style,
}: {
size?: number | string;
onClick?: () => void;
className?: string;
style?: React.CSSProperties;
}) {
return (
<button
onClick={onClick}
className={`${className} cursor-pointer`}
style={style}
>
<Icon name="close" size={size} color="gray-medium" />
</button>
);
}