import type { MemorialData } from "@/types";
import { TemplateElegance } from "./Elegance";
import { TemplateCinematic } from "./Cinematic";
import { TemplateSerene } from "./Serene";

export { TemplateElegance, TemplateCinematic, TemplateSerene };
export { formatDates, MemorialFooter } from "./shared";

export function renderTemplate(templateId: number, data: MemorialData) {
  switch (templateId) {
    case 1:
      return <TemplateElegance data={data} />;
    case 2:
      return <TemplateCinematic data={data} />;
    case 3:
      return <TemplateSerene data={data} />;
    default:
      return <TemplateElegance data={data} />;
  }
}
