mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
19 lines
434 B
TypeScript
19 lines
434 B
TypeScript
import { FunctionComponent, ReactNode } from 'react';
|
|
|
|
interface FormInfoProps {
|
|
children: [ReactNode, ReactNode];
|
|
}
|
|
|
|
/**
|
|
* @example
|
|
* <FormInfo>
|
|
* <FormLabel htmlFor="name">Name</FormLabel>
|
|
* <FormError>{errors.name?.message}</FormError>
|
|
* </FormInfo>;
|
|
*/
|
|
const FormInfo: FunctionComponent<FormInfoProps> = ({ children }) => (
|
|
<div className="flex justify-between">{children}</div>
|
|
);
|
|
|
|
export default FormInfo;
|