import { observer } from 'mobx-react-lite' ; import type { PlaceholderContainer } from './PlaceholderContainer' ; type Props < T extends Record < string , any > > = T & { container : PlaceholderContainer < T > ; } ; export const Placeholder = observer ( function Placeholder < T extends Record < string , any > > ( { container , ... rest } ) { return ( < > { container . get ( ) . map ( ( { id , component : Component } ) => < Component key = { id } { ... ( rest as any as T ) } / > ) } < />); } ) ;