import { Loadable } from 'recoil' import { InputLabel } from './inputs/InputLabel' import { Loader } from './logo/Loader' export interface FormattedJsonDisplayProps { title: string jsonLoadable: Loadable } // Displays nothing if the loadable errored or loaded undefined data. export const FormattedJsonDisplay = ({ title, jsonLoadable, }: FormattedJsonDisplayProps) => jsonLoadable.state === 'loading' ? ( ) : jsonLoadable.state === 'hasValue' && jsonLoadable.contents !== undefined ? (
        {JSON.stringify(jsonLoadable.contents, null, 2)}
      
) : null