File size: 573 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { Button } from '@automattic/components';
import clsx from 'clsx';
import { PanelCard, PanelCardDescription, PanelCardHeading } from 'calypso/components/panel';
export default function AdministrationToolCard( props ) {
const { description, href, isWarning, onClick, title } = props;
return (
<PanelCard>
<PanelCardHeading>{ title }</PanelCardHeading>
<PanelCardDescription>{ description }</PanelCardDescription>
<Button href={ href } onClick={ onClick } className={ clsx( { 'is-scary': isWarning } ) }>
{ title }
</Button>
</PanelCard>
);
}
|