components.form.task.TaskSubject.tsx Maven / Gradle / Ivy
import { getSubject } from 'components/form/utils/form-utils';
import { useFormInfo } from 'hooks/form';
import { useTranslator } from 'hooks/translator';
import { Box, Typography } from '@mui/material';
const TaskSubject = () => {
const formInfo = useFormInfo()
const { t } = useTranslator()
if (formInfo.subject && formInfo.subject != "(none)") {
return (
{t('subject')}: {getSubject(formInfo)}
)
} else return null;
}
export default TaskSubject