export type { ItemContent, PageContent, SectionContent } from "./types";

export { about } from "./about";
export { contact } from "./contact";
export { gallery } from "./gallery";
export { home } from "./home";
export { offerings } from "./offerings";
export { privacy } from "./privacy";
export { terms } from "./terms";

import { about } from "./about";
import { contact } from "./contact";
import { gallery } from "./gallery";
import { home } from "./home";
import { offerings } from "./offerings";
import { privacy } from "./privacy";
import { terms } from "./terms";
import type { PageContent } from "./types";

const pages: Record<string, PageContent> = {
  home,
  about,
  contact,
  gallery,
  offerings,
  privacy,
  terms,
};

export function getPageContent(slug: string): PageContent | undefined {
  return pages[slug];
}
