/** * External dependencies */ import classNames from 'classnames'; /** * WordPress dependencies */ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import ThemeIcon from './theme-icon'; /* eslint-disable react/jsx-no-bind */ /** * Theme control for use in SidebarOptions tab. * * @param {object} props - component properties. * @param {boolean} props.disabled - disables the control. * @param {Function} props.onChange - invoked with new theme value when a button is pressed. * @param {string} props.value - 'dark' or 'light'. * @returns {Element} component instance */ export default function ThemeControl( { disabled, value, onChange } ) { return (
); }