nukeop/nuclear

View on GitHub
packages/app/app/components/TagView/TagHeader/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import _ from 'lodash';

import styles from './styles.scss';

const TagHeader = ({ tag, topArtists }) => (
  <div className={styles.tag_header_container}>
    <div
      style={{
        backgroundImage: `url(${_.last(topArtists[0].image)['#text']})`
      }}
      className={styles.tag_header_background}
    />
    <div className={styles.tag_header_name}>#{tag}</div>
  </div>
);

export default TagHeader;