import { Text } from "@prismicio/editor-ui"; import { FC, ReactNode } from "react"; import styles from "./ZoneEmptyState.module.css"; type ZoneEmptyStateProps = { zoneType: "custom type" | "page type" | "slice"; heading?: ReactNode; action: ReactNode; }; export const ZoneEmptyState: FC = (props) => { const { zoneType, heading = `Your ${zoneType} has no fields yet`, action, } = props; return (
{heading} A field is an input for content (e.g. text, images, links).
{action}
); };