1 import type { FC, PropsWithChildren, ReactNode } from 'react';
3 import { Card } from '@proton/atoms';
4 import clsx from '@proton/utils/clsx';
9 contentClassname?: string;
13 export const SettingsPanel: FC<PropsWithChildren<Props>> = ({
17 contentClassname = 'flex flex-column flex-nowrap pt-4 pb-2',
24 'pass-settings--panel flex flex-nowrap flex-column p-5 mb-4 relative max-w-custom *:min-size-auto border-weak',
29 <div className="flex flex-nowrap gap-2 items-start">
30 <strong className="color-norm block mb-1 flex-1 text-ellipsis">{title}</strong>
31 <div className="shrink-0">{actions}</div>
33 {subTitle && <em className="block text-sm color-weak mb-2">{subTitle}</em>}
34 <hr className="mt-2 mb-0 shrink-0" />
35 <div className={contentClassname}>{children}</div>