summaryrefslogtreecommitdiff
path: root/src/components/jet/item/ParagraphShelfItem.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/jet/item/ParagraphShelfItem.svelte')
-rw-r--r--src/components/jet/item/ParagraphShelfItem.svelte21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/jet/item/ParagraphShelfItem.svelte b/src/components/jet/item/ParagraphShelfItem.svelte
new file mode 100644
index 0000000..9adf09c
--- /dev/null
+++ b/src/components/jet/item/ParagraphShelfItem.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+ import type { Paragraph } from '@jet-app/app-store/api/models';
+ import he from 'he';
+
+ export let item: Paragraph;
+</script>
+
+<p>
+ {@html he.decode(item.text)}
+</p>
+
+<style>
+ p {
+ font: var(--title-2-medium);
+ color: var(--systemSecondary);
+ }
+
+ p :global(b) {
+ color: var(--systemPrimary);
+ }
+</style>