import { magic } from '@agent/icons'; import { useGlobalStore } from '@agent/state/global'; import { Icon } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import classNames from 'classnames'; import { motion } from 'framer-motion'; // TODO: this isnt great if we allow the user to "pop out" the sidebar const isSidebarDocked = window.extAgentData.agentPosition !== 'floating'; export const AdminBar = () => { const { toggleOpen, open, isMobile } = useGlobalStore(); if (isMobile) return null; return ( toggleOpen()} aria-label={__('Open Agent', 'extendify-local')} > {__('AI Agent', 'extendify-local')} ); };