\r\n {t(\"Loading\")}...\r\n
\r\n

\r\n
\r\n
\r\n );\r\n}\r\n","import React, { ReactNode, useState } from \"react\";\r\nimport { Collapse, Row } from \"reactstrap\";\r\nimport { getCollapseIcon } from \"../ddh-styles\";\r\nimport HelpTooltip from \"./HelpTooltip\";\r\nimport { sanitizeHtmlId } from \"../util\";\r\nimport { IconLocator, RenderIcon, IconType } from \"./IconRenderer\";\r\nimport { faFileAlt } from \"@fortawesome/free-regular-svg-icons\";\r\nimport {\r\n getGlobalCollapsedState,\r\n setGlobalCollapsedState,\r\n} from \"../datatypes/CollapsedState\";\r\nimport { useTranslation } from \"react-i18next\";\r\n\r\ninterface CollapsibleSectionProps {\r\n /**\r\n * The content that will be shown in the header of the section\r\n */\r\n headerTitle: string | ReactNode;\r\n\r\n /**\r\n * The contents of the section\r\n */\r\n children: ReactNode | ReactNode[];\r\n\r\n /**\r\n * The text of the help tooltip that will be shown to the right of the section header\r\n */\r\n tooltip?: string | null | undefined;\r\n\r\n /**\r\n * The icon for the section that will be shown to the left of the section header\r\n */\r\n sectionIcon?: IconLocator | null;\r\n\r\n /**\r\n * Determines whether the section is collapsed by default\r\n */\r\n defaultCollapsed: boolean;\r\n\r\n /**\r\n * The CSS classes for the header text. The default is \"h3\".\r\n */\r\n linkClassName?: string | null | undefined;\r\n\r\n /**\r\n * The CSS classes for the Row that contains the entire header. The default is \"section-header\".\r\n */\r\n rowClassName?: string | null | undefined;\r\n\r\n /**\r\n * The document reference that will be shown as a \"page\" icon to the right of the section header.\r\n */\r\n referenceLink?: string | null | undefined;\r\n\r\n /**\r\n * A unique identifier for this section. This is used to tell React when a section has updated\r\n * and to identify collapsed state if rememberCollapsedState is true.\r\n */\r\n sectionKey?: string;\r\n\r\n /**\r\n * If true, RAINS will track the collapsed state of this header and remember it if the user navigates back.\r\n *\r\n * See ../data/CollapsedState.ts for this logic.\r\n */\r\n rememberCollapsedState?: boolean | undefined;\r\n}\r\n\r\n// Renders the document reference, if one was specified for this section\r\nexport function Reference({ url }: { url?: string | null }) {\r\n const { t } = useTranslation();\r\n if (!url) {\r\n return null;\r\n }\r\n\r\n return (\r\n