import React, { Component } from 'react'; import { OrgDiagram } from '../Diagrams'; import { PageFitMode, Enabled } from 'basicprimitives'; class Sample extends Component { render() { const config = { pageFitMode: PageFitMode.FitToPage, cursorItem: 0, highlightItem: 0, hasSelectorCheckbox: Enabled.True, defaultTemplateName: "contactTemplate", templates: [{ name: "contactTemplate", itemSize: { width: 120, height: 100 }, minimizedItemSize: { width: 3, height: 3 }, cursorPadding: { left: 3, top: 3, right: 3, bottom: 3 }, cursorBorderWidth: 2, highlightPadding: { left: 4, top: 4, right: 4, bottom: 4 }, onCursorRender: ({ context: itemConfig }) => { return