import * as React from 'react' ; import { ReactElement } from 'react' ; import { Record } from '../../types' ; import { RecordContextProvider } from '../RecordContext' ; import { ShowContext } from './ShowContext' ; import { ShowControllerProps } from './useShowController' ; example see ShowContext see RecordContext export const ShowContextProvider = ( { children , value , } ) => ( < ShowContext . Provider value = { value } > < RecordContextProvider < Partial < Record > > value = { value && value . record } > { children } < /RecordContextProvider> < /ShowContext.Provider>);