import * as React from 'react' import {__, _x} from '@wordpress/i18n' import { Icon, } from '@wordpress/components' import { upload, } from '@wordpress/icons' import { Button, type ButtonProps, } from '@ska/components' import { IS_SETTINGS_PAGE, } from '@ska/utils' import { usePluginPreference, } from '../../store' export type ExpandSidebarButtonProps = ButtonProps const ExpandSidebarButton: React.FC = props => { const [expanded, setExpanded] = usePluginPreference('sidebarExpanded') if(IS_SETTINGS_PAGE) { return null } return (
) } export default ExpandSidebarButton