1
0
Fork 0
freesewing/packages/florence/example/src/App.js

31 lines
655 B
JavaScript
Raw Normal View History

2020-02-29 13:12:20 +01:00
import React from 'react'
import freesewing from '@freesewing/core'
import Workbench from '@freesewing/components/Workbench'
import 'typeface-roboto-condensed'
import '@freesewing/css-theme'
import Pattern from 'pattern'
const App = (props) => {
2020-02-29 13:12:20 +01:00
let instance = new Pattern()
let config = instance.config
2020-04-26 13:09:54 +02:00
// 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="en"
translations={translations}
/>
)
2020-02-29 13:12:20 +01:00
}
export default App