import { bs3ButtonProps, BS3ButtonSize } from './ol-button' import { Button as BS3Button } from 'react-bootstrap' import type { IconButtonProps } from '@/features/ui/components/types/icon-button-props' import BootstrapVersionSwitcher from '../bootstrap-5/bootstrap-version-switcher' import Icon, { IconProps } from '@/shared/components/icon' import IconButton from '../bootstrap-5/icon-button' export type OLIconButtonProps = IconButtonProps & { bs3Props?: { loading?: React.ReactNode fw?: IconProps['fw'] className?: string bsSize?: BS3ButtonSize } } export default function OLIconButton(props: OLIconButtonProps) { const { bs3Props, ...rest } = props const { fw, ...bs3Rest } = bs3Props || {} return ( {bs3Props?.loading} } bs5={} /> ) }