import * as React from 'react' ; import { DashboardContainerInput } from '../..' ; import { DashboardContainerFactory } from './dashboard_container_factory' ; import { EmbeddableRenderer } from '../../services/embeddable' ; interface Props { input : DashboardContainerInput ; onInputUpdated ? : ( newInput : DashboardContainerInput ) => void ; } export const createDashboardContainerByValueRenderer = ( { factory } ) : React . FC < Props > => ( props ) => ( < EmbeddableRenderer input = { props . input } onInputUpdated = { props . onInputUpdated } factory = { factory } / > ) ;