-
Notifications
You must be signed in to change notification settings - Fork 492
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (27 loc) · 921 Bytes
/
index.js
File metadata and controls
34 lines (27 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react'
import Draggable from './dnd/Draggable'
import Container from './dnd/Container'
import BoardContainer from './controllers/BoardContainer'
import Board from './controllers/Board'
import Lane from './controllers/Lane'
import deprecationWarnings from './helpers/deprecationWarnings'
import DefaultComponents from './components'
import locales from './locales'
import widgets from './widgets'
import createTranslate from './helpers/createTranslate'
export {
Draggable,
Container,
BoardContainer,
Lane,
createTranslate,
locales,
widgets
}
export { DefaultComponents as components }
const DEFAULT_LANG='ptbr'
export default ({ components, lang=DEFAULT_LANG, ...otherProps }) => {
deprecationWarnings(otherProps);
const translate = createTranslate(locales[lang].translation)
return <Board t={translate} components={{...DefaultComponents, ...components}} {...otherProps} />
}