import * as React from 'react'; import { IIconProps } from '@fluentui/react'; import { DefaultButton } from '@fluentui/react/lib/Button'; 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, setMuted] = React.useState(false); const onClick = () => setMuted(!muted); return ( ); };