import Image from "next/image"; import { getThemeAuthorLink, getThemeFromId, 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 } from "lucide-react"; export default async function ThemePage({ themeID }: { themeID: string }) { const theme = await getThemeFromId(themeID); if (!theme) { return
Theme not found
; } const readme = await getThemeMarkdown(theme); return (

Go back

{theme.name}

{theme.name}

{theme.description}

{theme.homepage && ( Visit Homepage )}

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


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

Theme by{" "} {theme.author} {` • v${theme.version}`}

); }