PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.2.0
GiveWP – Donation Plugin and Fundraising Platform v4.2.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / EventTickets / resources / admin / feedback / popup / Header.tsx
Header.tsx
35 lines 1005 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {Button, Icon} from '@wordpress/components';
2 import CloseIcon from './CloseIcon';
3 import HeaderIcon from './HeaderIcon';
4
5 const Header = ({title, closeCallback}) => {
6 return (
7 <header
8 style={{
9 display: 'flex',
10 justifyContent: 'space-between',
11 alignItems: 'center',
12 }}
13 >
14 <div
15 style={{
16 display: 'flex',
17 alignItems: 'center',
18 gap: '10px',
19 fontSize: '16px',
20 fontWeight: 500,
21 lineHeight: '16px',
22 }}
23 >
24 <Icon icon={HeaderIcon} />
25 {title}
26 </div>
27 <button style={{padding: 0, height: 'auto', backgroundColor: 'transparent', border: 0, cursor: 'pointer'}} onClick={closeCallback}>
28 <CloseIcon />
29 </button>
30 </header>
31 );
32 };
33
34 export default Header;
35