import { Filter , isMatchAllFilter , FILTERS } from '../../../../../common' ; export const mapMatchAll = ( filter ) => { if ( isMatchAllFilter ( filter ) ) { return { type : FILTERS . MATCH_ALL , key : filter . meta . field , value : filter . meta . formattedValue || 'all' , } ; } throw filter ; } ;