import { useDispatch } from "react-redux"; import { useTranslation } from "react-i18next"; import Box from "@mui/material/Box"; import Button from "@mui/material/Button"; import { texts } from "./texts"; import { setText, setContentEditable } from "./labSlice"; export function TextPanel() { const { t } = useTranslation(undefined, {keyPrefix: 'lab'}); const dispatch = useDispatch(); return ( {texts.map(({ name, text }) => ( ))} ); }