import { ssrElement } from "./server.js"; 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 insert() {} export function spread() {} export function delegateEvents(): void {} export function Dynamic( props: T & { children?: any; component?: Component | string | keyof JSX.IntrinsicElements } ) { 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") { return ssrElement(comp as string, others, undefined, true); } } } export function Portal(props: { mount?: Node; useShadow?: boolean; children: JSX.Element }) { return ""; }