Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / pass / components / Form / Field / Control / UpgradeControl.tsx
blobe8fc4dd8ee3d02d99a838282fb1abfcfb6b0f5ad
1 import { type FC } from 'react';
3 import { type IconName } from '@proton/components';
4 import { UpgradeButton } from '@proton/pass/components/Layout/Button/UpgradeButton';
5 import { type UpsellRef } from '@proton/pass/constants';
7 import { ValueControl } from './ValueControl';
9 type UpgradeControlProps = {
10     icon: IconName;
11     label: string;
12     upsellRef: UpsellRef;
15 export const UpgradeControl: FC<UpgradeControlProps> = ({ icon, label, upsellRef }) => (
16     <ValueControl icon={icon} label={label}>
17         <UpgradeButton inline upsellRef={upsellRef} />
18     </ValueControl>