mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 02:00:07 +02:00

Apply minor upgrades to Bootstrap 5 and react-bootstrap GitOrigin-RevId: eb013f38515ebd4b9572d139f00841aca344e3c6
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
import { CloseButton, CloseButtonProps } from 'react-bootstrap'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { forwardRef } from 'react'
|
|
|
|
const OLCloseButton = forwardRef<HTMLButtonElement, CloseButtonProps>(
|
|
(props, ref) => {
|
|
const { t } = useTranslation()
|
|
|
|
return <CloseButton ref={ref} aria-label={t('close')} {...props} />
|
|
}
|
|
)
|
|
|
|
OLCloseButton.displayName = 'OLCloseButton'
|
|
|
|
export default OLCloseButton
|