"use client"; import React from "react"; import { Row } from "./Row"; import TableContext from "./TableContext"; import type { TableContextType, TableRow } from "./types"; const Footer: React.FC = () => { const { footers } = React.useContext(TableContext) as TableContextType; return footers ? (
{footers.map((row: TableRow, i: number) => (