import { FILTERS , Filter , isQueryStringFilter } from '../../../../../common' ; export const mapQueryString = ( filter ) => { if ( isQueryStringFilter ( filter ) ) { return { type : FILTERS . QUERY_STRING , key : 'query' , value : filter . query . query_string . query , } ; } throw filter ; } ;