ol-icon-button.tsx 467 B

123456789101112131415
  1. import { forwardRef } from 'react'
  2. import type { IconButtonProps } from '@/shared/components/types/icon-button-props'
  3. import IconButton from '../button/icon-button'
  4. export type OLIconButtonProps = IconButtonProps
  5. const OLIconButton = forwardRef<HTMLButtonElement, OLIconButtonProps>(
  6. (props, ref) => {
  7. // BS5 tooltip relies on the ref
  8. return <IconButton {...props} ref={ref} />
  9. }
  10. )
  11. OLIconButton.displayName = 'OLIconButton'
  12. export default OLIconButton