1import React, { FC } from 'react'; 2import { FolderPicker, Props as FolderPickerProps } from 'app/core/components/Select/FolderPicker'; 3 4export interface Folder { 5 title: string; 6 id: number; 7} 8 9export interface Props extends Omit<FolderPickerProps, 'initialTitle' | 'initialFolderId'> { 10 value?: Folder; 11} 12 13export const RuleFolderPicker: FC<Props> = ({ value, ...props }) => ( 14 <FolderPicker showRoot={false} allowEmpty={true} initialTitle={value?.title} initialFolderId={value?.id} {...props} /> 15); 16