1
0
Fork 0
freesewing/packages/react/components/DiffViewer/index.mjs

9 lines
313 B
JavaScript
Raw Normal View History

import React from 'react'
import { diffWords, diffJson } from 'diff'
import ReactDiffViewer from 'react-diff-viewer-continued'
export const diffJSON = (from, to) => diffJson(from, to)
export const diffCheck = (from, to) => diffWords(from, to)
export const DiffViewer = (props) => <ReactDiffViewer {...props} />