import * as React from 'react'; import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button'; import { Panel } from 'office-ui-fabric-react/lib/Panel'; import { useConstCallback } from '@uifabric/react-hooks'; const buttonStyles = { root: { marginRight: 8 } }; export const PanelFooterExample: React.FunctionComponent = () => { const [isOpen, setIsOpen] = React.useState(false); const openPanel = useConstCallback(() => setIsOpen(true)); const dismissPanel = useConstCallback(() => setIsOpen(false)); // This panel doesn't actually save anything; the buttons are just an example of what // someone might want to render in a panel footer. const onRenderFooterContent = useConstCallback(() => (
Content goes here.