import * as React from 'react'; export const RequiredScopesRow = ({ scopeSets }: { scopeSets: string[][] }): JSX.Element | null => { if (!scopeSets.length) return null; return (
Required scopes: {scopeSets.map((scopeSet, ssIdx) => { return ( {scopeSet.map((scope, idx) => { return ( {scope}{' '} ); })} {ssIdx + 1 < scopeSets.length && ' or '} ); })}
); };