/
DeleteWikiDoc.js
48 lines (43 loc) · 1.25 KB
/
DeleteWikiDoc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* @flow strict-local
* Copyright (C) 2020 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import * as React from 'react';
import FormCsrfToken from '../../components/FormCsrfToken.js';
import FormSubmit from '../../components/FormSubmit.js';
import Layout from '../../layout/index.js';
type Props = {
+form: SecureConfirmFormT,
+page: string,
};
const DeleteWikiDoc = ({
form,
page,
}: Props): React.Element<typeof Layout> => (
<Layout fullWidth title={l('Remove Page')}>
<div id="content">
<h1>{l('Remove Page')}</h1>
<p>
{exp.l(`Are you sure you wish to remove the page
“{page_uri|{page_name}}” from the transclusion table?`,
{
page_name: page,
page_uri: '/doc/' + encodeURIComponent(page),
})}
</p>
<form method="post" name="confirm">
<FormCsrfToken form={form} />
<FormSubmit
label={l('Yes, I\'m sure')}
name="confirm.submit"
value="1"
/>
</form>
</div>
</Layout>
);
export default DeleteWikiDoc;