import { apiRequest } from "./client";

export type SystemPage = {
  code: string;
  title: string;
  content: string;
  updated_at?: string;
};

export function getSystemPage(code: "agreement" | "privacy") {
  return apiRequest(`/api/system/${code}`) as Promise<SystemPage>;
}
