Empty text" }}
/>
{!imgLeft &&
}
);
}
if (type === "video") {
if (!content.url) {
return (
;
}
if (type === "text-video") {
const vidLeft = content.video_position === "left";
return (
{vidLeft &&
}
Empty text" }}
/>
{!vidLeft &&
}
);
}
return null;
}
export function PreviewContent({ lesson, blocks, empty = "No content yet." }) {
return (
<>
{blocks.length === 0 ? (
) : (
blocks.map((block) => (
))
)}
>
);
}
export function PreviewChrome({ title, children }) {
return (
{title ?? "Lesson Preview"}
{children}
);
}