import { MonoField, Active, Weight, Age, Communities, RPKIState, ASPath } from './fields';
import type { CellRenderProps } from '~/types';
interface CellProps {
data: CellRenderProps;
rawData: StructuredResponse;
}
export const Cell = (props: CellProps): JSX.Element => {
const { data, rawData } = props;
const cellId = data.column.id as keyof Route;
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] ?? <> >;
};