mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
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} />;
|
|
}
|
|
|
|
}
|