import { readFileSync } from "node:fs";
import { join } from "node:path";

/**
 * Reads a static SVG from `public/brand/` at render time so it can be
 * inlined directly into the page (server components only) instead of
 * loaded via `<img src>` — keeps it real markup in the DOM, not a
 * separate image request, matching how SignatureAbout.tsx's brand SVGs
 * are handled elsewhere on this page.
 */
export function readBrandSvg(filename: string): string {
  return readFileSync(join(process.cwd(), "public", "brand", filename), "utf-8");
}
