import { FC } from "react"; import { useSelector } from "react-redux"; import Box from "@mui/material/Box"; import { useTheme, alpha as alphaFunc } from "@mui/material/styles"; import { RootState } from "./reducers"; import { LabState } from "./labSlice"; export const TextArea: FC = () => { const theme = useTheme(); const labState: LabState = useSelector( (state: RootState) => state.labReducer, (prev, next) => prev.font === next.font && prev.text === next.text && prev.contentEditable === next.contentEditable && prev.font === next.font && prev.justify === next.justify && prev.tnum === next.tnum && prev.calt === next.calt && prev.size === next.size && prev.weight === next.weight && prev.alpha === next.alpha && prev.isVariable === next.isVariable, ); const { font, isVariable, justify, tnum, calt, size, weight, alpha, text, contentEditable, } = labState; return (
") }} /> ); };