import { Action } from 'src/plugins/ui_actions/public' ; import { RawValue } from '../../common/constants' ; import { DatatableColumnType } from '../../../../../src/plugins/expressions' ; export function isUrlDrilldown ( action ) { return action . type === 'URL_DRILLDOWN' ; } export function toValueClickDataFormat ( key , value ) { return [ { table : { columns : [ { id : key , meta : { type : 'unknown' as DatatableColumnType , field : key , } , name : key , } , ] , rows : [ { [ key ] : value , } , ] , } , column : 0 , row : 0 , value , } , ] ; }