"use client"; import { useState } from "react"; import { Card, CardContent } from "~/components/ui/card"; import Markdown from "./@markdown"; import RichHeader from "./@rich-header"; type Props = { content: string; title: string; }; export default function Readme({ content, title }: Props) { const [view, setView] = useState<"markdown" | "raw">("markdown"); return (