import * as React from 'react' ; import styles from './Table.module.scss' ; interface Props { sticky ? : boolean ; } const TableHeader = props => { const { sticky } = props ; const classes = [ styles . tableHeader ] ; if ( sticky ) { classes . push ( styles . tableHeaderSticky ) ; } return < thead className = { classes . join ( ' ' ) } > { props . children } < /thead>; } ; export default TableHeader ;