Files
ragflow/web/src/components/bool-segmented.tsx
balibabu f57f32cf3a Feat: Add loop operator node. #10427 (#11449)
### What problem does this PR solve?

Feat: Add loop operator node. #10427

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-11-27 15:55:46 +08:00

19 lines
457 B
TypeScript

import { omit } from 'lodash';
import { Segmented, SegmentedProps } from './ui/segmented';
export function BoolSegmented({ ...props }: Omit<SegmentedProps, 'options'>) {
return (
<Segmented
options={
[
{ value: true, label: 'True' },
{ value: false, label: 'False' },
] as any
}
sizeType="sm"
itemClassName="justify-center flex-1"
{...omit(props, 'options')}
></Segmented>
);
}