vcc-ui
Version:
A React library for building user interfaces at Volvo Cars
33 lines (32 loc) • 875 B
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import PropTypes from 'prop-types';
import React from 'react';
import { useFela } from 'react-fela';
import { Flex } from '../flex';
const style = () => ({
padding: '16px 32px'
});
/**
* @deprecated This component is deprecated and can be recreated using CSS only. See [ClickableCard Example](https://developer.volvocars.com/design-system/web/?path=/docs/how-to-clickablecard--docs)
*/
export const CardContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
let {
children,
...props
} = _ref;
const {
theme
} = useFela();
const styleProps = {
theme
};
return /*#__PURE__*/React.createElement(Flex, _extends({
ref: ref
}, props, {
extend: style(styleProps)
}), children);
});
CardContent.displayName = 'CardContent';
CardContent.propTypes = {
children: PropTypes.node
};