/** * Card - Settings group component. */ /** * Internal dependencies */ import { Card } from '../'; import './style.scss'; const CardSettingsGroup = ( { actionType = 'chevron', children, icon = null, title = '', description = '', isActive = false, onEnable = () => {}, }: { actionType?: 'chevron' | 'toggle' | 'button' | 'link' | 'none'; children?: React.ReactNode; icon?: React.ReactNode; title: string; description?: string; isActive?: boolean; onEnable?: () => void; } ) => { return (

{ title }

{ description &&

{ description }

} ), onHeaderClick: onEnable, icon, iconBackgroundColor: true, isActive, title, } } > { isActive && children }
); }; export default CardSettingsGroup;