import { c, classy, m, SelectProps } from '@onfido/castor'; import { useField } from '@onfido/castor-react'; import React from 'react'; import { withRef } from '../../../utils'; export const NativeSelect = withRef(function NativeSelect( { className, invalid, id, ...restProps }: NativeSelectProps, ref: NativeSelectProps['ref'] ) { const { disabled, touched } = useField(); return (