mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-29 20:43:42 +01:00
19 lines
434 B
JavaScript
19 lines
434 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import Card from '../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} />;
|
||
|
}
|
||
|
|
||
|
}
|