(
{
size = ButtonSize.Medium,
variant = ButtonVariant.Tertiary,
...props
}: ButtonProps<'button'>,
ref: Ref<HTMLButtonElement>,
)
| 5 | import { MiniCloseIcon as CloseIcon } from './icons'; |
| 6 | |
| 7 | function CloseButtonComponent( |
| 8 | { |
| 9 | size = ButtonSize.Medium, |
| 10 | variant = ButtonVariant.Tertiary, |
| 11 | ...props |
| 12 | }: ButtonProps<'button'>, |
| 13 | ref: Ref<HTMLButtonElement>, |
| 14 | ): ReactElement { |
| 15 | return ( |
| 16 | <Button |
| 17 | title="Close" |
| 18 | {...props} |
| 19 | size={size} |
| 20 | variant={variant} |
| 21 | ref={ref} |
| 22 | icon={<CloseIcon />} |
| 23 | /> |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | const CloseButton = forwardRef(CloseButtonComponent); |
| 28 |
nothing calls this directly
no outgoing calls
no test coverage detected