mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Enable logical operators in metadata. #11387 #11376 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
13 lines
341 B
TypeScript
13 lines
341 B
TypeScript
import { SwitchLogicOperator } from '@/constants/agent';
|
|
import { buildOptions } from '@/utils/form';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
export function useBuildSwitchLogicOperatorOptions() {
|
|
const { t } = useTranslation();
|
|
return buildOptions(
|
|
SwitchLogicOperator,
|
|
t,
|
|
'flow.switchLogicOperatorOptions',
|
|
);
|
|
}
|