import { memo, useRef, useState } from "react" import styles from './document.module.css' import Download from '@geist-ui/icons/download' import ExternalLink from '@geist-ui/icons/externalLink' import Skeleton from "react-loading-skeleton" import { Button, ButtonGroup, Card, Input, Spacer, Tabs, Textarea, Tooltip } from "@geist-ui/core" import Preview from "@components/preview" import HtmlPreview from "@components/preview/html" // import Link from "next/link" type Props = { title: string html: string initialTab?: "edit" | "preview" skeleton?: boolean id: string content: string } const DownloadButton = ({ rawLink }: { rawLink?: string }) => { return (
) } const Document = ({ content, title, html, initialTab = 'edit', skeleton, id }: Props) => { const codeEditorRef = useRef