Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / containers / security / PGPSchemeSelect.tsx
blob22cd28f7036b8425cfa357cf82c99fd17db8fca4
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';
6 interface Props {
7     pgpScheme: number;
8     id: string;
9     onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
10     disabled: boolean;
13 export const PGPSchemeSelect = ({ id, pgpScheme, onChange, disabled, ...rest }: Props) => {
14     const options = [
15         { value: PACKAGE_TYPE.SEND_PGP_MIME, text: 'PGP/MIME' },
16         { value: PACKAGE_TYPE.SEND_PGP_INLINE, text: 'PGP/Inline' },
17     ];
18     return <Select id={id} value={pgpScheme} options={options} disabled={disabled} onChange={onChange} {...rest} />;