import React from "react"; import Button from "@material-ui/core/Button"; import { languages } from "@freesewing/i18n"; const LanguageChooser = props => { const styles = { container: { display: "flex", height: "calc(100vh - 64px)", width: "100%" }, chooser: { width: "100%", textAlign: "center", alignSelf: "center" }, button: { margin: "1rem" } }; const changeLanguage = lang => { props.setLanguage(lang); props.setDisplay("pattern"); }; return (