about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/containers/card_container.js
blob: 8285437bbfc92a40bf150e94212584d9d7e38760 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import PropTypes from 'prop-types';
import Card from 'themes/glitch/features/status/components/card';
import { fromJS } from 'immutable';

export default class CardContainer extends React.PureComponent {

  static propTypes = {
    locale: PropTypes.string,
    card: PropTypes.array.isRequired,
  };

  render () {
    const { card, ...props } = this.props;
    return <Card card={fromJS(card)} {...props} />;
  }

}