-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdata-app-template.tsx
More file actions
24 lines (22 loc) · 1007 Bytes
/
data-app-template.tsx
File metadata and controls
24 lines (22 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { ReactNode } from "react";
import { TemplateDetail } from "@/components/templates/template-detail";
import { templates } from "@/lib/recipes/recipes";
import { buildTemplateRawMarkdown } from "@/lib/template-content";
import { useAllRawRecipeMarkdown } from "@/lib/use-raw-content-markdown";
import DatabricksLocalBootstrap from "@site/content/recipes/databricks-local-bootstrap.md";
import LakebaseDataPersistence from "@site/content/recipes/lakebase-data-persistence.md";
const template = templates.find((t) => t.id === "data-app-template");
export default function DataAppTemplatePage(): ReactNode {
const rawBySlug = useAllRawRecipeMarkdown();
if (!template) {
throw new Error("Template data-app-template not found");
}
const rawMarkdown = buildTemplateRawMarkdown(template, rawBySlug);
return (
<TemplateDetail template={template} rawMarkdown={rawMarkdown}>
<DatabricksLocalBootstrap />
<hr />
<LakebaseDataPersistence />
</TemplateDetail>
);
}