import { jsx as _jsx } from "react/jsx-runtime";
import { Suspense } from "react";
/**
 * This is just a convenience component to set the `fallback` to `null`.
 *
 * @example Simple Example
 * ```tsx
 * import { NullSuspense } from "@react-md/core/suspense/NullSuspense";
 * import type { ReactElement } from "react";
 * import { lazy } from "react";
 *
 * const Component = lazy(() => import('./Some/Path/To/Component'));
 *
 * function Example() {
 *   return (
 *     <NullSuspense>
 *       <Component />
 *     </NullSuspense>
 *   );
 * }
 * ```
 *
 * @see {@link https://react-md.dev/components/suspense | Suspense Demos}
 * @since 6.0.0
 */ export function NullSuspense(props) {
    const { children } = props;
    return /*#__PURE__*/ _jsx(Suspense, {
        fallback: null,
        children: children
    });
}

//# sourceMappingURL=NullSuspense.js.map