import { DetailedHTMLProps, HTMLAttributes, PropsWithChildren, TdHTMLAttributes, ThHTMLAttributes, } from 'react' import {joinClassNames} from '../../libs/helper' type TableProps = HTMLAttributes & PropsWithChildren type TdProps = DetailedHTMLProps, HTMLTableCellElement> & PropsWithChildren type ThProps = DetailedHTMLProps, HTMLTableCellElement> & PropsWithChildren type TrProps = HTMLAttributes & PropsWithChildren function Field(props: TdProps) { return {props.children} } function FormTable(props: TableProps) { const { children, className, } = props return ( {children}
) } function Header(props: ThProps) { return {props.children} } function Row(props: TrProps) { return {props.children} } export { Field, FormTable, Header, Row, }