mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-25 20:26:39 +08:00
### What problem does this PR solve? Feat: Add loop operator node. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
19 lines
457 B
TypeScript
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>
|
|
);
|
|
}
|