aboutsummaryrefslogtreecommitdiff
path: root/Sources/NorgUI/Views/Blocks/CodeBlockView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/NorgUI/Views/Blocks/CodeBlockView.swift')
-rw-r--r--Sources/NorgUI/Views/Blocks/CodeBlockView.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/Sources/NorgUI/Views/Blocks/CodeBlockView.swift b/Sources/NorgUI/Views/Blocks/CodeBlockView.swift
new file mode 100644
index 0000000..2f1ebfb
--- /dev/null
+++ b/Sources/NorgUI/Views/Blocks/CodeBlockView.swift
@@ -0,0 +1,10 @@
+import SwiftUI
+
+struct CodeBlockView: View {
+ let language: String?
+ let code: String
+
+ var body: some View {
+ VerbatimBlock(label: language, content: code)
+ }
+}