16 lines
555 B
TypeScript
16 lines
555 B
TypeScript
|
import { OptionsComponentProvider, SigninPageExtensionProvider } from '@nocobase/client';
|
||
|
import React, { FC } from 'react';
|
||
|
import { OIDCButton } from './OIDCButton';
|
||
|
import { authType } from '../constants';
|
||
|
import { Options } from './Options';
|
||
|
|
||
|
export const OidcProvider: FC = (props) => {
|
||
|
return (
|
||
|
<SigninPageExtensionProvider component={OIDCButton} authType={authType}>
|
||
|
<OptionsComponentProvider authType={authType} component={Options}>
|
||
|
{props.children}
|
||
|
</OptionsComponentProvider>
|
||
|
</SigninPageExtensionProvider>
|
||
|
);
|
||
|
};
|