UNPKG

ndla-ui

Version:

UI component library for NDLA.

32 lines (28 loc) 762 B
/** * Copyright (c) 2017-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 { classes } from './ResourcesWrapper'; import { SubjectBadge } from '../ContentTypeBadge'; var ResourceTitle = function ResourceTitle(_ref) { var children = _ref.children; return React.createElement( 'div', classes('title-wrapper'), React.createElement(SubjectBadge, { size: 'large', background: true }), React.createElement( 'h1', classes('title'), children ) ); }; ResourceTitle.propTypes = { children: PropTypes.node.isRequired }; export default ResourceTitle;