import { Filter , isPhrasesFilter } from '../../../../../common' ; export const mapPhrases = ( filter ) => { if ( ! isPhrasesFilter ( filter ) ) { throw filter ; } const { type , key , value , params } = filter . meta ; return { type , key , value , params } ; } ;