import { colors } from '@0x/react-shared'; import * as _ from 'lodash'; import * as React from 'react'; import { VersionDropDown } from 'ts/components/documentation/version_drop_down'; import { Container } from 'ts/components/ui/container'; import { Text } from 'ts/components/ui/text'; import { ScreenWidths } from 'ts/types'; export interface SidebarHeaderProps { screenWidth: ScreenWidths; title: string; docsVersion?: string; availableDocVersions?: string[]; onVersionSelected?: () => void; } export const SidebarHeader: React.StatelessComponent = ({ screenWidth, title, docsVersion, availableDocVersions, onVersionSelected, }) => { return ( {title} {!_.isUndefined(docsVersion) && !_.isUndefined(availableDocVersions) && !_.isUndefined(onVersionSelected) && (
)}
); };