2024-03-18 13:58:05 +01:00
|
|
|
import type { VFC } from 'react';
|
2022-05-02 15:52:41 +02:00
|
|
|
import { CardActions, Button } from '@mui/material';
|
2024-03-18 13:58:05 +01:00
|
|
|
import type { IAuthEndpointDetailsResponse } from 'hooks/api/getters/useAuth/useAuthEndpoint';
|
2022-05-02 12:52:33 +02:00
|
|
|
|
|
|
|
interface IAuthenticationCustomComponentProps {
|
|
|
|
authDetails: IAuthEndpointDetailsResponse;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const AuthenticationCustomComponent: VFC<
|
|
|
|
IAuthenticationCustomComponentProps
|
|
|
|
> = ({ authDetails }) => (
|
|
|
|
<div>
|
|
|
|
<p>{authDetails.message}</p>
|
|
|
|
<CardActions style={{ textAlign: 'center' }}>
|
|
|
|
<a href={authDetails.path} style={{ width: '100%' }}>
|
|
|
|
<Button
|
2023-10-02 14:25:46 +02:00
|
|
|
variant='contained'
|
|
|
|
color='primary'
|
2022-05-02 12:52:33 +02:00
|
|
|
style={{ width: '150px', margin: '0 auto' }}
|
|
|
|
>
|
|
|
|
Sign In
|
|
|
|
</Button>
|
|
|
|
</a>
|
|
|
|
</CardActions>
|
|
|
|
</div>
|
|
|
|
);
|