Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript
446 B
Raw Blame
"use client"

import * as React from "react"

import { DocxEditorPreview } from "@/components/extend/docx-editor"

export function DocxEditorBlock({ file }: { file?: string }) {
  const [isDark, setIsDark] = React.useState(false)

  return (
    <div className="h-full min-h-0 bg-background">
      <DocxEditorPreview
        src={file ?? "/samples/demo.docx"}
        isDark={isDark}
        onIsDarkChange={setIsDark}
      />
    </div>
  )
}