1 import { type FC } from 'react';
3 import { Button, Card } from '@proton/atoms';
4 import { Icon, type IconName } from '@proton/components';
5 import clsx from '@proton/utils/clsx';
7 export type LearnMoreProps = {
11 iconClassName?: string;
13 ctaAction: () => void;
16 export const LearnMoreCard: FC<LearnMoreProps> = ({ icon, iconClassName, title, description, ctaLabel, ctaAction }) => (
19 className="text-lg overflow-hidden flex gap-4 md:gap-4 flex-nowrap md:flex-wrap items-center border-weak"
21 <Icon name={icon} size={8} color="var(--interaction-norm)" className={clsx('shrink-0', iconClassName)} />
22 <div className="flex flex-column w-full gap-4">
23 <span className="text-left text-rg color-strong text-bold">{title}</span>
24 <span className="text-left text-sm color-weak">{description}</span>
25 <Button shape="underline" color="norm" size="small" className="text-left text-sm" onClick={ctaAction}>