import OLTooltip from '@/shared/components/ol/ol-tooltip' import MaterialIcon from '@/shared/components/material-icon' import classNames from 'classnames' import { ComponentProps, forwardRef, ReactElement } from 'react' import { NavLink } from 'react-bootstrap' import { RailElement } from '@/features/ide-react/util/rail-types' const RailTab = forwardRef< HTMLButtonElement, { icon: RailElement['icon'] eventKey?: string open: boolean indicator?: ReactElement title: string } & ComponentProps<'button'> >(({ icon, className, eventKey, open, indicator, title, ...props }, ref) => { return ( {indicator} ) }) const RailTabIcon = ({ icon, title, open, }: { icon: RailElement['icon'] title: string open: boolean }) => { if (typeof icon === 'string') { return open ? ( ) : ( ) } else { const Component = icon return } } RailTab.displayName = 'RailTab' export default RailTab