"use client";

import Box from "@mui/material/Box";

import { MeetingSummaryKhmerPrintDocument } from "./meeting-summary-khmer-print-document";
import type { MeetingSummaryPrintModel } from "./meeting-summary-print-mock-data";
import { MeetingSummaryPrintStyles } from "./meeting-summary-print-styles";

type Props = {
  model: MeetingSummaryPrintModel;
  preview?: boolean;
};

export function MeetingSummaryPrintView({
  model,
  preview = false,
}: Props) {
  return (
    <>
      <MeetingSummaryPrintStyles />
      <Box className={preview ? undefined : "ms-khmer-print-root"}>
        <MeetingSummaryKhmerPrintDocument model={model} preview={preview} />
      </Box>
    </>
  );
}
