import * as React from 'react'; import { DefaultButton } from '@fluentui/react/lib/Button'; import { Panel } from '@fluentui/react/lib/Panel'; import { TextField } from '@fluentui/react/lib/TextField'; import { useBoolean } from '@fluentui/react-hooks'; const contentExplanation = 'Try typing something in this text field, closing the panel, and re-opening the panel. ' + " The text field's contents should still be here when the panel re-opens."; export const PanelHiddenOnDismissExample: React.FunctionComponent = () => { const [isOpen, { setTrue: openPanel, setFalse: dismissPanel }] = useBoolean(false); return (