forked from Hajoppi/ilmotunkki-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move react markdown rendering to client component
- Loading branch information
1 parent
548e74c
commit 471c103
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use client"; | ||
|
||
import ReactMarkdown from "react-markdown"; | ||
|
||
export const TermsContent = ({ | ||
terms, | ||
gdpr, | ||
}: { | ||
terms: string; | ||
gdpr: string; | ||
}) => { | ||
return ( | ||
<> | ||
<ReactMarkdown className="prose prose-secondary dark:prose-invert"> | ||
{terms} | ||
</ReactMarkdown> | ||
<ReactMarkdown className="prose prose-secondary dark:prose-invert"> | ||
{gdpr} | ||
</ReactMarkdown> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters