import React from 'react'; import Typography from '@mui/material/Typography'; import { useRendererConfigStore } from '../../../stores'; interface DisplayUnitTextProps { readOnly: boolean; children: string; } function DisplayUnitText(props: DisplayUnitTextProps) { const { readOnly, children } = props; const readOnlyVisualStyle = useRendererConfigStore.use.readOnlyVisualStyle(); const readOnlyTextColor = readOnlyVisualStyle === 'disabled' ? 'text.disabled' : 'text.secondary'; return ( {children} ); } export default DisplayUnitText;