import { useTranslation } from "react-i18next"; import Terria from "../../../../Models/Terria"; import Box from "../../../../Styled/Box"; import { RawButton } from "../../../../Styled/Button"; import Icon from "../../../../Styled/Icon"; import { TextSpan } from "../../../../Styled/Text"; import Ul, { Li } from "../../../../Styled/List"; import MenuPanel from "../../../StandardUserInterface/customizable/MenuPanel"; import Styles from "../../MenuBar/menu-bar.scss"; const stripLangLocale = (lang: string = ""): string => lang.split("-")[0]; type Props = { terria: Terria; smallScreen: boolean; }; const LangPanel = (props: Props) => { const { t, i18n } = useTranslation(); if (!props.terria.configParameters.languageConfiguration?.languages) { return null; } return ( //@ts-expect-error - not yet ready to tackle tsfying MenuPanel ); }; export default LangPanel;