backpack-ui
Version:
Lonely Planet's Components
27 lines (22 loc) • 564 B
JSX
import React from "react";
import PropTypes from "prop-types";
import radium from "radium";
import { textUppercase } from "../../utils/typography";
import propTypes from "../../utils/propTypes";
const styles = Object.assign({}, {
color: "inherit",
}, textUppercase());
const AuthorName = ({ children, style }) => (
<div
className="AuthorName"
itemProp="author"
style={[styles, style]}
>
{children}
</div>
);
AuthorName.propTypes = {
children: PropTypes.node.isRequired,
style: propTypes.style,
};
export default radium(AuthorName);