Server : LiteSpeed
System : Linux server104.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : saleoqej ( 6848)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/saleoqej/public_html/wp-content/plugins/extendify/src/Library/components/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /home/saleoqej/public_html/wp-content/plugins/extendify/src/Library/components/MainButton.jsx
import { __ } from '@wordpress/i18n';
import { Icon } from '@wordpress/icons';
import { extendifyLogo } from '@library/icons/extendify-logo';
import { useGlobalsStore } from '@library/state/global';

export const MainButton = () => {
	const { setOpen } = useGlobalsStore();
	const handleClick = () => setOpen(true);

	return (
		<div
			role="button"
			onClick={handleClick}
			className="components-button has-icon is-primary cursor-pointer h-8 xs:h-9 px-1 min-w-0 xs:pl-2 xs:pr-3 sm:ml-2">
			<Icon icon={extendifyLogo} size={24} />
			<span className="hidden xs:inline ml-1">
				{__('Design Library', 'extendify-local')}
			</span>
		</div>
	);
};