import { Column } from 'react-data-grid' import { TimestampInfo } from 'ui-patterns/TimestampInfo' import type { LogData } from '../Logs.types' import { extractEdgeFunctionName } from '../Logs.utils' import { ResponseCodeFormatter, RowLayout, TextFormatter } from '../LogsFormatters' import { defaultRenderCell } from './DefaultPreviewColumnRenderer' const columns: Column[] = [ { name: 'functions-edge-first-column', key: 'functions-edge-first-column', renderHeaderCell: () => null, renderCell: (props) => { if (!props.row.status_code && !props.row.method) { return defaultRenderCell(props) } const functionName = extractEdgeFunctionName(props.row.pathname) return ( {functionName && } ) }, }, ] export default columns