import { ssr , ssrSpread , ssrHydrationKey } from "./server" ; import { splitProps , Component , JSX } from "solid-js" ; export * from "./server" ; export { For , Show , Suspense , SuspenseList , Switch , Match , Index , ErrorBoundary , mergeProps } from "solid-js" ; export const isServer = true ; export function spread ( ) { } export function Dynamic < T > ( props ) { const [ p , others ] = splitProps ( props , [ "component" ] ) ; const comp = p . component , t = typeof comp ; if ( comp ) { if ( t === "function" ) return ( comp as Function ) ( others ) ; else if ( t === "string" ) { const [ local , sOthers ] = splitProps ( others , [ "children" ] ) ; return ssr ( [ `<${ comp }` , ' ' , ">" , `</${ comp }>` ] , ssrHydrationKey ( ) , ssrSpread ( sOthers ) , local . children || "" ) ; } } } export function Portal ( props ) { return "" ; }