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

33 lines
667 B
JavaScript
Raw Normal View History

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'
2020-04-26 13:09:54 +02:00
const App = (props) => {
let instance = new Pattern()
let config = instance.config
2019-10-13 15:13:22 +02:00
2020-04-26 13:09:54 +02:00
// You can use this to add transations
/*
2020-04-26 13:09:54 +02:00
let translations = {
JSON: 'JSON',
someOtherString: 'Some other string that needs translation'
}
*/
2020-04-26 13:09:54 +02:00
2020-03-14 15:04:45 +01:00
return (
<Workbench
freesewing={freesewing}
Pattern={Pattern}
config={config}
userLanguage="en"
//translations={translations}
2020-03-14 15:04:45 +01:00
/>
)
}
export default App