import {Authenticator} from 'sentry/types'; import U2fSign from './u2fsign'; type U2FSignProps = React.ComponentProps; type Props = { authenticators: Array; onTap: U2FSignProps['onTap']; className?: string; displayMode?: U2FSignProps['displayMode']; }; function U2fContainer({className, authenticators, ...props}: Props) { if (!authenticators.length) { return null; } return (
{authenticators.map(auth => auth.id === 'u2f' && auth.challenge ? ( ) : null )}
); } export default U2fContainer;