accounts-frontend/packages/app/components/auth/acceptRules/AcceptRules.tsx

31 lines
734 B
TypeScript
Raw Normal View History

2020-07-24 21:49:11 +05:30
import React from 'react';
import { FormattedMessage as Message, defineMessages } from 'react-intl';
2019-12-07 16:58:52 +05:30
import factory from '../factory';
2016-08-03 00:29:29 +05:30
import Body from './AcceptRulesBody';
const messages = defineMessages({
title: 'User Agreement',
declineAndLogout: 'Decline and logout',
deleteAccount: 'Delete account',
});
2016-08-03 00:29:29 +05:30
export default factory({
2020-05-24 04:38:24 +05:30
title: messages.title,
body: Body,
footer: {
color: 'darkBlue',
autoFocus: true,
2020-07-24 21:49:11 +05:30
children: <Message key="accept" defaultMessage="Accept" />,
2020-05-24 04:38:24 +05:30
},
links: [
{
label: messages.declineAndLogout,
},
{
label: messages.deleteAccount,
payload: { deleteAccount: true },
},
],
2016-08-03 00:29:29 +05:30
});