UNPKG

@wordpress/components

Version:
31 lines (26 loc) 839 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { cx as _cx } from "emotion"; import { createElement } from "@wordpress/element"; /** * Internal dependencies */ import { View } from '../view'; import { contextConnect, useContextSystem } from '../context'; import * as styles from './styles'; /** * @param {import('../context').ViewOwnProps<{}, 'div'>} props * @param {import('react').Ref<any>} forwardedRef */ function CardInnerBody(props, forwardedRef) { const { className, ...otherProps } = useContextSystem(props, 'CardInnerBody'); const classes = _cx(styles.InnerBody, className); return createElement(View, _extends({}, otherProps, { className: classes, ref: forwardedRef })); } export default contextConnect(CardInnerBody, 'CardInnerBody'); //# sourceMappingURL=inner-body.js.map