import Image from "next/image"; import { getThemeAuthorLink, getThemeMarkdown, ZenTheme } from "@/lib/themes"; import { Button } from "./ui/button"; import { useEffect, useState } from "react"; import Markdown from "react-markdown"; import '../app/privacy-policy/markdown.css'; import { ChevronLeft, LoaderCircleIcon, LoaderIcon, LoaderPinwheelIcon, MoveLeftIcon } from "lucide-react"; export default function ThemePage({ theme }: { theme: ZenTheme }) { const [readme, setReadme] = useState(null); useEffect(() => { getThemeMarkdown(theme).then(setReadme); }, [theme]); return (
{theme.name}

{theme.name}

{theme.description}

{theme.homepage && ( Visit Homepage )}

You need to have Zen Browser installed to install this theme. Download now!


window.history.back()}>

Go back

{readme === null ? ( ) : ( {`${readme}`} )}

Theme by{" "} {theme.author}

); }