* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
24 lines
454 B
TypeScript
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>
|
|
);
|
|
}
|