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 / sidebar / Sidebar.jsx

Sidebar.jsx in Extendify 3.2.1, at src/Library/components/sidebar/Sidebar.jsx

36 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { CategoryControl } from '@library/components/sidebar/CategoryControl';
2 import { extendifyLogo } from '@library/icons/extendify-logo';
3 import { Icon } from '@wordpress/icons';
4
5 const { partnerLogo, partnerName } = window.extSharedData;
6 export const Sidebar = () => {
7 return (
8 <div className="hidden flex-shrink-0 flex-col gap-6 md:flex md:w-80">
9 {partnerLogo ? (
10 <div className="flex justify-center bg-banner-main p-6 py-0">
11 <div className="flex h-20 w-40 items-center justify-center py-3">
12 <img
13 className="max-h-full max-w-full"
14 src={partnerLogo}
15 alt={partnerName}
16 />
17 </div>
18 </div>
19 ) : (
20 <div className="-mb-5 hidden px-5 py-3 text-extendify-black sm:flex sm:pt-5">
21 <Icon icon={extendifyLogo()} size={40} />
22 </div>
23 )}
24 <div className="flex flex-col gap-4 overflow-y-auto pb-16">
25 <div
26 id="extendify-library-category-control"
27 data-test="category-control"
28 className="hidden flex-col overflow-x-hidden px-4 md:flex"
29 >
30 <CategoryControl />
31 </div>
32 </div>
33 </div>
34 );
35 };
36