import React, { FunctionComponent, ReactNode, HTMLAttributes } from 'react'; import getClassName from '../../helpers/getClassName'; import classNames from '../../lib/classNames'; import usePlatform from '../../hooks/usePlatform'; export interface TabbarItemProps extends HTMLAttributes { selected?: boolean; /** * Тест рядом с иконкой */ text?: ReactNode; /** * Счетчик рядом с иконкой */ label?: ReactNode; } const TabbarItem: FunctionComponent = (props: TabbarItemProps) => { const { className, children, selected, label, text, ...restProps } = props; const platform = usePlatform(); return ( {children} {label && {label}} {text && {text}} ); }; export default TabbarItem;