import React from 'react'; import { NonceFieldFactory } from 'components/NonceFieldFactory'; import Help from 'components/ui/Help'; interface Props { alwaysDisplay: boolean; } const nonceHelp = ( ); export const NonceField: React.SFC = ({ alwaysDisplay }) => ( { const content = ( <> {nonceHelp} ); return alwaysDisplay || shouldDisplay ? content : null; }} /> );