2017-09-14 04:39:10 +03:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2017-12-04 09:26:40 +02:00
|
|
|
import Card from 'flavours/glitch/features/status/components/card';
|
2017-09-14 04:39:10 +03:00
|
|
|
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} />;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|