"use client";
import { Table } from "@pythnetwork/component-library/Table";
import { useMemo } from "react";
import { useCollator } from "react-aria";
import styles from "./reference-data.module.scss";
import { AssetClassTag } from "../AssetClassTag";
import { LiveValue } from "../LivePrices";
type Props = {
feed: {
symbol: string;
feedKey: string;
assetClass: string;
base?: string | undefined;
description: string;
country?: string | undefined;
quoteCurrency?: string | undefined;
tenor?: string | undefined;
cmsSymbol?: string | undefined;
cqsSymbol?: string | undefined;
nasdaqSymbol?: string | undefined;
genericSymbol?: string | undefined;
weeklySchedule?: string | undefined;
schedule?: string | undefined;
contractId?: string | undefined;
displaySymbol: string;
exponent: number;
numComponentPrices: number;
numQuoters: number;
minPublishers: number;
lastSlot: bigint;
validSlot: bigint;
};
};
export const ReferenceData = ({ feed }: Props) => {
const collator = useCollator();
const rows = useMemo(
() =>
[
...Object.entries({
"Asset Type":