import { MonoField, Active, Weight, Age, Communities, RPKIState, ASPath } from './fields'; import type { TCell } from './types'; export const Cell = (props: TCell) => { const { data, rawData } = props; const cellId = data.column.id as keyof TRoute; const component = { med: , age: , prefix: , next_hop: , peer_rid: , source_as: , active: , source_rid: , local_preference: , communities: , as_path: , rpki_state: , weight: , }; return component[cellId] ?? <> ; };