about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/containers/card_container.js
blob: dec7df5223660cc57aabaae4d28a2d6d78c513a6 (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 'flavours/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} />;
  }

}