import { Text } from "preact-i18n"; import styles from "./Panes.module.scss"; import Tip from "../../../components/ui/Tip"; import Checkbox from "../../../components/ui/Checkbox"; import { connectState } from "../../../redux/connector"; import { WithDispatcher } from "../../../redux/reducers"; import { Emoji } from "../../../components/markdown/Emoji"; import { Language, LanguageEntry, Languages as Langs } from "../../../context/Locale"; interface Props { locale: Language; } export function Component({ locale, dispatcher }: Props & WithDispatcher) { return (
); } export const Languages = connectState( Component, state => { return { locale: state.locale }; }, true );