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 Link from "next/link" import { Button, ButtonGroup, Spacer, Tabs, Textarea, Tooltip, Tag } from "@geist-ui/core/dist" import { StaticPreview } from "app/(posts)/components/preview" import FadeIn from "@components/fade-in" // import Link from "next/link" type Props = { title: string initialTab?: "edit" | "preview" skeleton?: boolean id: string content: string preview: string } const DownloadButton = ({ rawLink }: { rawLink?: string }) => { return (