import * as React from 'react' ; import { NOOP } from '@synerise/ds-utils' ; import { TagsListProps } from './TagsList.types' ; export type ContextValues = { searchOpen : boolean ; searchQuery : string ; setSearchQuery : ( query : string ) => void ; setSearchOpen : ( open : boolean ) => void ; } & TagsListProps ; export const defaultValue = { withCheckbox : true , withTristateCheckbox : true , searchOpen : false , searchQuery : '' , setSearchQuery : NOOP , setSearchOpen : NOOP , } ; const TagsListContext = React . createContext ( defaultValue ) ; export default TagsListContext ;