mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-26 06:59:53 +05:30
31 lines
734 B
TypeScript
31 lines
734 B
TypeScript
import React from 'react';
|
|
import { FormattedMessage as Message, defineMessages } from 'react-intl';
|
|
|
|
import factory from '../factory';
|
|
import Body from './AcceptRulesBody';
|
|
|
|
const messages = defineMessages({
|
|
title: 'User Agreement',
|
|
declineAndLogout: 'Decline and logout',
|
|
deleteAccount: 'Delete account',
|
|
});
|
|
|
|
export default factory({
|
|
title: messages.title,
|
|
body: Body,
|
|
footer: {
|
|
color: 'darkBlue',
|
|
autoFocus: true,
|
|
children: <Message key="accept" defaultMessage="Accept" />,
|
|
},
|
|
links: [
|
|
{
|
|
label: messages.declineAndLogout,
|
|
},
|
|
{
|
|
label: messages.deleteAccount,
|
|
payload: { deleteAccount: true },
|
|
},
|
|
],
|
|
});
|