/** * External dependencies */ import clsx from 'clsx'; /** * Internal dependencies */ import { CardBody } from '~/marketing/components'; import './PluginCardBody.scss'; type PluginCardBodyProps = { className?: string; icon: JSX.Element; name: string; /** * WooCommerce's Pill component to be rendered beside the name. */ pills?: Array< JSX.Element >; description: React.ReactNode; button?: JSX.Element; }; /** * Renders a CardBody layout component to display plugin info and button. */ export const PluginCardBody: React.FC< PluginCardBodyProps > = ( { className, icon, name, pills, description, button, } ) => { return (
{ icon }
{ name } { pills }
{ description }
{ button }
); };