wass-rct-ui
Version:
A lightweight and customizable WASS Rct UI component library for modern web applications.
42 lines (41 loc) • 1.04 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";
export interface OddProps {
odd: number;
size: number;
}
export interface TableConfigProps {
columns: string[];
columnsPerType: number;
}
export interface RowDataProps {
id: string;
name: string;
odds: OddProps[];
profitLoss: number | null;
}
export interface CellDataProps {
rowIndex: number;
columnIndex: number;
odd: number;
size: number;
columnType: string;
}
interface OddsTableProps {
initialData: RowDataProps[];
columns: string[];
columnsPerType: number;
tableTitle?: string;
min?: number;
max?: number;
onCellClick?: (data: CellDataProps) => void;
}
declare const OddsTable: React.FC<OddsTableProps>;
export default OddsTable;