All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy