import { disableEventHandler, getDefaultProps, onClickHandler, simulatorClass, simulatorRootClass, } from "@prismicio/simulator/kit" import type { SliceSimulatorProps } from "@prismicio/simulator/kit" import type { FC, ReactNode } from "react" type SliceSimulatorWrapperProps = SliceSimulatorProps & { children: ReactNode className?: string message?: string hasSlices: boolean } /** A wrapper for the slice simulator that isolates the given children from the page's layout. */ export const SliceSimulatorWrapper: FC = ({ className, children, zIndex, background, message, hasSlices, }) => { const defaultProps = getDefaultProps() return (
{message ? (
) : hasSlices ? (
{children}
) : null}
) }