Add email settings to step sidebar

[MAILPOET-4420]
This commit is contained in:
Jan Jakes
2022-07-07 12:28:20 +02:00
committed by Veljko V
parent bc502d8046
commit b313c74901

View File

@@ -1,5 +1,42 @@
import { PanelBody } from '@wordpress/components';
import { PanelBody, TextareaControl, TextControl } from '@wordpress/components';
import { edit, Icon } from '@wordpress/icons';
import {
PlainBodyTitle,
TitleActionButton,
} from '../../../../editor/components/panel';
export function Edit(): JSX.Element {
return <PanelBody opened>TODO</PanelBody>;
return (
<PanelBody opened>
<PlainBodyTitle title="Email">
<TitleActionButton>
<Icon icon={edit} size={16} />
</TitleActionButton>
</PlainBodyTitle>
<TextControl
label="“From” name"
placeholder="John Doe"
value=""
onChange={() => {}}
/>
<TextControl
label="“From” email address"
placeholder="you@domain.com"
value=""
onChange={() => {}}
/>
<TextareaControl
label="Subject"
placeholder="Type in subject…"
value=""
onChange={() => {}}
/>
<TextareaControl
label="Preheader"
placeholder="Type in preheader…"
value=""
onChange={() => {}}
/>
</PanelBody>
);
}