mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 08:28:22 +08:00
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>
|
||
|
|
);
|
||
|
|
}
|