import type { Metadata } from "next"; import Link from "next/link"; import { JetBrains_Mono, DM_Sans } from "next/font/google"; import { gitStatus } from "@/lib/git"; import "./manager.css"; export const dynamic = "force-dynamic"; const mono = JetBrains_Mono({ subsets: ["latin"], variable: "--mono", display: "swap" }); const sans = DM_Sans({ subsets: ["latin"], variable: "--sans", display: "swap" }); export const metadata: Metadata = { title: "Blog Manager", description: "Local editor for the portfolio blog", }; async function PublishBadge() { const status = await gitStatus(); if (!status.available) { return git unavailable; } const pending = status.changes.length; const ahead = status.ahead ?? 0; if (!pending && !ahead) return published; return ( {pending ? `${pending} unpublished change${pending === 1 ? "" : "s"}` : `${ahead} commit(s) not pushed`} ); } export default function RootLayout({ children }: { children: React.ReactNode }) { return (