import React, { ElementType, HTMLAttributes } from 'react'; import getClassName from '../../helpers/getClassName'; import classNames from '../../lib/classNames'; import usePlatform from '../../hooks/usePlatform'; import { HasFormLabels, HasFormStatus, HasRootRef } from '../../types'; export interface FormFieldProps extends HTMLAttributes, HasRootRef, HasFormStatus, HasFormLabels { Component?: ElementType; } const FormField: React.FunctionComponent = ({ Component, className, children, status, getRootRef, top, bottom, ...restProps }: FormFieldProps) => { const platform = usePlatform(); return ( {children}
); }; FormField.defaultProps = { status: 'default', Component: 'div', }; export default FormField;