mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
create sortable table
This commit is contained in:
12
scm-ui/ui-components/src/table/Column.tsx
Normal file
12
scm-ui/ui-components/src/table/Column.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user