import type React from 'react'; import type { Noop, RefCallBack } from 'react-hook-form'; import type { Theme } from 'react-select'; import ReactSelect from 'react-select'; import { bitwiseDecode, bitwiseEncode } from '@app/core/utils/bitwise'; import { useAppSelector } from '@hooks/useAppSelector'; import { Label } from './Label'; export interface BiwiseSelectProps { label: string; error?: string; value: number; optionsEnum: { [s: string]: string | number }; onChange: (...event: unknown[]) => void; onBlur: Noop; name: string; ref: RefCallBack; } export const BitwiseSelect = ({ label, error, value, optionsEnum, onChange, ref, }: BiwiseSelectProps): JSX.Element => { const darkMode = useAppSelector((state) => state.app.darkMode); return (
{label &&
); };