import React, {Children} from 'react';

interface TableProps extends React.TableHTMLAttributes<HTMLTableElement>
{
    children?: React.ReactNode,
}


const Table = ({children, ...props}: TableProps) => {
    return (
        <table {...props}>
            {Children.map(children, child => child)}
        </table>
    );
}

export default Table;