import * as React from 'react'; import I18n from 'i18n-js'; import { AuthenticationPages } from './AuthenticationSiteSettingsP'; import Button from '../../common/Button'; import { IOAuth } from '../../../interfaces/IOAuth'; import OAuthProviderItem from './OAuthProviderItem'; import ActionLink from '../../common/ActionLink'; import { LearnMoreIcon } from '../../common/Icons'; interface Props { oAuths: Array; handleToggleEnabledOAuth(id: number, enabled: boolean): void; handleToggleEnabledDefaultOAuth(id: number, enabled: boolean): void; handleDeleteOAuth(id: number): void; setPage: React.Dispatch>; setSelectedOAuth: React.Dispatch>; } const OAuthProvidersList = ({ oAuths, handleToggleEnabledOAuth, handleToggleEnabledDefaultOAuth, handleDeleteOAuth, setPage, setSelectedOAuth, }: Props) => ( <>

{ I18n.t('site_settings.authentication.oauth_subtitle') }

window.open('https://github.com/astuto/astuto-docs/blob/main/docs/oauth/oauth-configuration-basics.md', '_blank')} icon={} > {I18n.t('site_settings.authentication.learn_more')}

    { oAuths.map((oAuth, i) => ( )) }
); export default OAuthProvidersList;