import { memo } from "react" import styles from "./document.module.css" import Skeleton from "@components/skeleton" import Link from "next/link" import Tooltip from "@components/tooltip" import Button from "@components/button" import ButtonGroup from "@components/button-group" import DocumentTabs from "app/(posts)/components/tabs" import Input from "@components/input" import { Download, ExternalLink } from "react-feather" // import Link from "next/link" type Props = { title: string initialTab?: "edit" | "preview" skeleton?: boolean id: string content: string preview: string } const DownloadButtons = ({ rawLink }: { rawLink?: string }) => { return (
) } const Document = ({ content, preview, title, initialTab = "edit", skeleton, id }: Props) => { if (skeleton) { return ( <>
) } return ( <>
{}} disabled aria-label="Document title" />
{/* Not /api/ because of rewrites defined in next.config.mjs */}
) } export default memo(Document)