custom-app
Version:
ITIMS��Ʒ�鿪��ר��React���,�Dz��ý��ּ�dhcc-app���������
26 lines (19 loc) • 511 B
JavaScript
import React from 'react'
import { customPropTypes, getUnhandledProps } from '../../lib'
import TableHeader from './TableHeader'
/**
* A table can have a footer.
*/
function TableFooter(props) {
const { as } = props
const rest = getUnhandledProps(TableFooter, props)
return <TableHeader {...rest} as={as} />
}
TableFooter.propTypes = {
/** An element type to render as (string or function). */
as: customPropTypes.as,
}
TableFooter.defaultProps = {
as: 'tfoot',
}
export default TableFooter