import { CreateTestRendererParams } from "coral-framework/testHelpers" ; import createTopLevel from "../create" ; export default function create ( params ) { return createTopLevel ( { ... params , initLocalState : ( localRecord , source , environment ) => { if ( params . initLocalState ) { params . initLocalState ( localRecord , source , environment ) ; } } , } ) ; }