1
0
Fork 0

fix: Issues with exports

This commit is contained in:
joostdecock 2024-12-21 14:25:49 +01:00
parent d703707532
commit b4c4031fc5
20 changed files with 252 additions and 274 deletions

View file

@ -0,0 +1,9 @@
import React from 'react'
import { Highlight } from '@freesewing/react/components/Highlight'
import hljs from 'highlight.js/lib/common'
export const Json = (props) => {
const code = props.js ? JSON.stringify(props.js, null, 2) : props.children
return <Highlight language="json" raw={hljs.highlight(code, { language: 'json' }).value} />
}