PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Library / components / topbar / Topbar.jsx

Topbar.jsx in Extendify 3.2.1, at src/Library/components/topbar/Topbar.jsx

31 lines 958 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { CloseButton } from '@library/components/topbar/CloseButton';
2 import { __, sprintf } from '@wordpress/i18n';
3
4 export const Topbar = ({ openOnNewPage, updateUserOption, onClose }) => {
5 return (
6 <div className="mb-2 flex h-16 flex-shrink-0 items-center justify-end gap-6 px-8">
7 <label
8 className="mt-4 flex items-center gap-2"
9 htmlFor="extendify-open-on-new-pages"
10 title={sprintf(
11 // translators: %s: Extendify Library term
12 __('Toggle %s on new pages', 'extendify-local'),
13 'Extendify Library',
14 )}
15 >
16 <input
17 id="extendify-open-on-new-pages"
18 className="m-0 rounded-xs border border-solid border-gray-900"
19 type="checkbox"
20 checked={openOnNewPage}
21 onChange={(e) => updateUserOption('openOnNewPage', e.target.checked)}
22 />
23 <span>{__('Open for new pages', 'extendify-local')}</span>
24 </label>
25 <div className="mt-4">
26 <CloseButton onClose={onClose} />
27 </div>
28 </div>
29 );
30 };
31