ndla-ui
Version:
UI component library for NDLA.
42 lines (37 loc) • 829 B
JavaScript
/**
* Copyright (c) 2016-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import BEMHelper from 'react-bem-helper';
var classes = new BEMHelper({
name: 'translation',
prefix: 'c-'
});
var Translation = function Translation(_ref) {
var children = _ref.children,
index = _ref.index;
return React.createElement(
'div',
classes(''),
React.createElement(
'div',
classes('index'),
index
),
React.createElement(
'dl',
classes('wrapper'),
children
)
);
};
Translation.propTypes = {
index: PropTypes.number.isRequired,
children: PropTypes.node.isRequired
};
export default Translation;