Initial Paprika Next.js implementation
This commit is contained in:
8
components/LegacyPage.tsx
Normal file
8
components/LegacyPage.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
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 }} />;
|
||||
}
|
||||
Reference in New Issue
Block a user