import { getSiteContent } from "@/lib/db";
import { siteContent as fallback } from "@/data/content";
import type { SiteContent } from "@/types/content";

export function getContent(): SiteContent {
  try {
    const content = getSiteContent();
    if (content) return content;
    return fallback;
  } catch {
    return fallback;
  }
}
