import { useSrefActive } from '@uirouter/react'; import classnames from 'classnames'; import React from 'react'; import './HorizontalTabs.less'; interface ITabProps { title: string; path: string; } export interface IHorizontalTabsProps { tabs: ITabProps[]; className?: string; onClick?: (props: ITabProps) => void; rightElement?: React.ReactElement; } export const HorizontalTabs = ({ tabs, className, onClick, rightElement }: IHorizontalTabsProps) => { return (