import * as React from 'react'; import { Header } from '@fluentui/react-northstar'; import { ComponentInfo } from '../componentInfo/types'; import { JSONTreeElement } from './types'; export type DescriptionProps = { selectedJSONTreeElement: JSONTreeElement; componentInfo: ComponentInfo; }; export const Description: React.FunctionComponent = ({ selectedJSONTreeElement, componentInfo }) => { if (!componentInfo) { return null; } return (
{componentInfo.displayName}
{' '} uuid: {selectedJSONTreeElement.uuid}
{componentInfo.docblock.description}
); };