import React from "react" import { HistoryChanges } from '../types/column.type'; import { DataRow } from "../types/cell.type" import { DataColumn } from "../types/column.type" import { TableBodyCellHistory } from "./style" export interface HistoryProps { messages?: { noChanges?: string, changesHistory?: string, }, row: DataRow, column: DataColumn, history: (column: DataColumn, row: any) => Promise, children?: React.ReactNode | React.ReactNode[] | any, } export const History: React.FC = ({ messages, row, column, history, children }) => { const handleLoadHistory = () => { return history(column, row); } return ( <> {children} ) }