import React, { FC } from 'react'; import LabelsField from './LabelsField'; import AnnotationsField from './AnnotationsField'; import { RuleEditorSection } from './RuleEditorSection'; import { useFormContext } from 'react-hook-form'; import { RuleFormType, RuleFormValues } from '../../types/rule-form'; export const DetailsStep: FC = () => { const { watch } = useFormContext(); const type = watch('type'); return ( {type !== RuleFormType.cloudRecording && } ); };