mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
scaffold create/edit beer form, scaffold beer page
This commit is contained in:
12
components/ui/forms/FormInfo.tsx
Normal file
12
components/ui/forms/FormInfo.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { FunctionComponent, ReactNode } from 'react';
|
||||
|
||||
/** A container for both the form error and form label. */
|
||||
interface FormInfoProps {
|
||||
children: Array<ReactNode> | ReactNode;
|
||||
}
|
||||
|
||||
const FormInfo: FunctionComponent<FormInfoProps> = ({ children }) => (
|
||||
<div className="flex justify-between">{children}</div>
|
||||
);
|
||||
|
||||
export default FormInfo;
|
||||
Reference in New Issue
Block a user