wass-rct-ui
Version:
A lightweight and customizable WASS Rct UI component library for modern web applications.
37 lines (36 loc) • 1.12 kB
TypeScript
/**
* @file wass-rct-ui
* @description A reusable Title component that supports dynamic heading levels.
* @author Web Apps Software Solutions
* @copyright © 2024 Web Apps Software Solutions. All rights reserved.
* @license MIT
* @repository https://github.com/WebAppSoftNK/wass-rct-ui
*/
import * as React from "react";
import { BGColorVariant, CellType, TextColorVariant, ViewMode } from "../types";
export interface OddsItem {
odd: string;
size: string;
}
export interface OddsTableRow {
id: string;
teamId: string;
teamName: string;
profitLoss: number | null;
backOdds: OddsItem[];
layOdds: OddsItem[];
suspended: boolean;
suspendedMessage?: string;
}
export interface OddsTableProps {
rows: OddsTableRow[];
onCellClick?: (rowId: string, cellType: CellType, teamId: string, odds: string, size: string) => void;
viewMode?: ViewMode;
min?: number;
max?: number;
tableHeader?: string;
headerBGColor?: BGColorVariant;
headerTextColor?: TextColorVariant;
}
declare const OddsTableTable: React.FC<OddsTableProps>;
export default OddsTableTable;