import React from "react";
import { Box } from "@mui/material";
import { CvTheme } from "../cvBuilder";
export default function CvTemplateThumbnail({ theme, height = 150 }: { theme?: CvTheme; height?: number }) {
const accent = theme?.swatches?.[0] || "#3157d5";
const sidebar = theme?.swatches?.[1] || "#eef1f4";
const paper = theme?.swatches?.[2] || "#ffffff";
const layout = theme?.layout || "header-band";
const hasSidebar = layout === "sidebar-left" || layout === "sidebar-right";
const sidebarRight = layout === "sidebar-right";
const lines = [92, 72, 84, 61, 88, 76, 95, 67];
const body =
{lines.map((width, index) => )}
;
const side =
{[66, 86, 54, 74, 62, 79].map((width) => )}
;
return (
{!hasSidebar &&
{layout === "header-band" && <>>}
}
{hasSidebar && !sidebarRight ? side : null}{body}{hasSidebar && sidebarRight ? side : null}
);
}