export const name = "prisma-og-image"; export const width = 1200; export const height = 630; export const fonts = [ "archivo/Archivo-VariableFont_wdth,wght.ttf", "geist/Geist[wght].woff2", "geist/GeistMono[wght].woff2", ]; const PrismaLogo = () => ( Prisma ); const HTTP_METHOD_COLORS = { GET: "#07DC71", POST: "#51A2FF", DELETE: "#FF6467", } as const; function PrismaOGImage({ title, description, method, apiPath, section, }: { title: string; description?: string; method?: "GET" | "POST" | "DELETE"; apiPath?: string; section?: string; }) { return (
{method ? (
{method}
) : section ? (
{section === "orm" ? "PRISMA ORM" : section === "postgres" ? "PRISMA POSTGRES" : section.replace(/-/g, " ").toUpperCase()}
) : null}

30 ? "3.5rem" : "5rem", fontWeight: 700, fontFamily: "Archivo, sans-serif", color: "#f7fafc", lineHeight: 1.2, margin: 0, }} > {title}

{description && (

{description}

)} {apiPath && (
{apiPath.split(/(\{[^}]+\})/).map((segment, i) => ( {segment} ))}
)}
prisma.io/docs
); } export default function PrismaOGImageExample() { return ( ); }