1
0
Fork 0
freesewing/packages/create-freesewing-pattern/template/default/example/src/App.js

31 lines
665 B
JavaScript
Raw Normal View History

2019-08-03 15:03:33 +02:00
import React from 'react'
import freesewing from '@freesewing/core'
import Workbench from '@freesewing/components/Workbench'
import 'typeface-roboto-condensed'
import '@freesewing/css-theme'
2018-03-04 15:43:18 -05:00
2019-08-03 15:03:33 +02:00
import Pattern from 'pattern'
2018-03-04 15:43:18 -05:00
const App = (props) => {
2019-08-03 15:03:33 +02:00
let instance = new Pattern()
let config = instance.config
// You can use this to add transations
let translations = {
JSON: 'JSON',
someOtherString: 'Some other string that needs translation'
}
return (
<Workbench
freesewing={freesewing}
Pattern={Pattern}
config={config}
userLanguage="{{language}}"
translations={translations}
/>
2019-08-03 15:03:33 +02:00
)
}
2019-08-03 15:03:33 +02:00
export default App