import React, { FC } from 'react'; import { RouteComponentProps } from '@reach/router'; import { Table } from 'reactstrap'; import { withStatusIndicator } from '../withStatusIndicator'; import { useFetch } from '../utils/useFetch'; import PathPrefixProps from '../PathPrefixProps'; interface FlagMap { [key: string]: string; } interface FlagsProps { data?: FlagMap; } export const FlagsContent: FC = ({ data = {} }) => { return ( <>

Command-Line Flags

{Object.keys(data).map(key => ( ))}
{key} {data[key]}
); }; const FlagsWithStatusIndicator = withStatusIndicator(FlagsContent); FlagsContent.displayName = 'Flags'; const Flags: FC = ({ pathPrefix = '' }) => { const { response, error, isLoading } = useFetch(`${pathPrefix}/api/v1/status/flags`); return ; }; export default Flags;