import { splitProps, type JSX, type ValidComponent } from "solid-js"; import { Dynamic } from "solid-js/web"; import { useSsgoi } from "./context"; type SsgoiTransitionProps = { children: JSX.Element; id: string; as?: T; class?: string; }; /** * @deprecated Set `data-ssgoi-transition` directly on the page boundary * element inside `` instead. */ export const SsgoiTransition = ( props: SsgoiTransitionProps, ) => { const [local, rest] = splitProps(props, ["children", "id", "as", "class"]); const ssgoi = useSsgoi(); const component = (local.as || "div") as ValidComponent; return ( {local.children} ); };