import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from '@edx/frontend-platform/i18n'; import { Hyperlink } from '@openedx/paragon'; import AppSettingsModal from 'CourseAuthoring/pages-and-resources/app-settings-modal/AppSettingsModal'; import { useModel } from 'CourseAuthoring/generic/model-store'; import messages from './messages'; const LearningAssistantSettings = ({ onClose }) => { const appId = 'learning_assistant'; const appInfo = useModel('courseApps', appId); const intl = useIntl(); // We need to render more than one link, so we use the bodyChildren prop. const bodyChildren = ( appInfo?.documentationLinks?.learnMoreOpenaiDataPrivacy && appInfo?.documentationLinks?.learnMoreOpenai ? (