1 import type { ChangeEvent } from 'react';
3 import Select from '@proton/components/components/select/Select';
4 import { PACKAGE_TYPE } from '@proton/shared/lib/mail/mailSettings';
9 onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
13 export const PGPSchemeSelect = ({ id, pgpScheme, onChange, disabled, ...rest }: Props) => {
15 { value: PACKAGE_TYPE.SEND_PGP_MIME, text: 'PGP/MIME' },
16 { value: PACKAGE_TYPE.SEND_PGP_INLINE, text: 'PGP/Inline' },
18 return <Select id={id} value={pgpScheme} options={options} disabled={disabled} onChange={onChange} {...rest} />;