Files
SCM-Manager/scm-ui/ui-components/src/table/Column.tsx

13 lines
265 B
TypeScript
Raw Normal View History

2019-11-29 15:57:36 +01:00
import React, { FC, ReactNode } from "react";
import { ColumnProps } from "./types";
type Props = ColumnProps & {
children: (row: any) => ReactNode;
};
const Column: FC<Props> = ({ row, children }) => {
return <>{children(row)}</>;
};
export default Column;