slate/components/core/marketing/Label.js

15 lines
281 B
JavaScript
Raw Normal View History

2020-09-13 08:21:52 +03:00
import * as React from "react";
2020-09-13 06:52:06 +03:00
2020-09-13 08:21:52 +03:00
export default class Label extends React.Component {
2020-09-13 06:52:06 +03:00
render() {
const { labels } = this.props;
return (
2020-09-13 07:22:04 +03:00
<div>
2020-09-13 06:52:06 +03:00
{labels.map(label => {
2020-09-13 07:22:04 +03:00
return <a key={label.id}>{label.name}</a>;
2020-09-13 06:52:06 +03:00
})}
</div>
);
}
}