blob: 7bfacab4dfb1250f5c2b1dff262c969ddae0bff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* External dependencies
*/
import React from 'react';
import { assign } from 'lodash';
import classnames from 'classnames';
/**
* Internal dependencies
*/
import Card from 'components/card';
export default class CompactCard extends React.Component {
static displayName = 'CompactCard';
render() {
const props = assign( {}, this.props, {
className: classnames( this.props.className, 'is-compact' ),
} );
return <Card { ...props }>{ this.props.children }</Card>;
}
}
|