Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
TimestampCell.tsx857 B
import { CellContext } from "@tanstack/react-table"; import { isStringOrNullOrUndefined } from "@phoenix/typeUtils"; export const DEFAULT_FORMAT: Intl.DateTimeFormatOptions = { year: "numeric", month: "numeric", day: "numeric", hour: "2-digit", minute: "2-digit", }; /** * A table cell that nicely formats a timestamp */ export function TimestampCell<TData extends object, TValue>({ getValue, format = DEFAULT_FORMAT, }: CellContext<TData, TValue> & { format?: Intl.DateTimeFormatOptions }) { const value = getValue(); if (!isStringOrNullOrUndefined(value)) { throw new Error( "TimestampCell only supports string, null, or undefined values." ); } const timestamp = value != null ? new Date(value).toLocaleString([], format) : "--"; return <time title={value != null ? String(value) : ""}>{timestamp}</time>; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server