9 lines
284 B
TypeScript
9 lines
284 B
TypeScript
import type { LegacyPageKey } from "@/lib/legacy-pages";
|
|
import { legacyPages } from "@/lib/legacy-pages";
|
|
|
|
export function LegacyPage({ pageKey }: { pageKey: LegacyPageKey }) {
|
|
const page = legacyPages[pageKey];
|
|
|
|
return <div dangerouslySetInnerHTML={{ __html: page.html }} />;
|
|
}
|