import * as React from 'react'; import { DefaultButton, IIconProps } from 'office-ui-fabric-react'; import { useBoolean } from '@uifabric/react-hooks'; export interface IButtonExampleProps { // These are set based on the toggles shown above the examples (not needed in real code) disabled?: boolean; checked?: boolean; } const volume0Icon: IIconProps = { iconName: 'Volume0' }; const volume3Icon: IIconProps = { iconName: 'Volume3' }; export const ButtonToggleExample: React.FunctionComponent = props => { const { disabled, checked } = props; const [muted, { toggle: setMuted }] = useBoolean(false); return ( ); };