import { UISref } from '@uirouter/react'; import { UIRouterContext } from '@uirouter/react-hybrid'; import React from 'react'; import type { ISearchResultSet } from '../infrastructure/infrastructureSearch.service'; import type { SearchResultType } from './searchResultType'; export interface ISearchResultTabsProps { resultSets: ISearchResultSet[]; activeSearchResultType: SearchResultType; } @UIRouterContext export class SearchResultTabs extends React.Component { public render(): React.ReactElement { const { activeSearchResultType } = this.props; const resultSets = this.props.resultSets.slice().sort((a, b) => a.type.order - b.type.order); return ( ); } }