You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
454 B
22 lines
454 B
import type React from 'react';
|
|
|
|
import { Loading } from '@components/generic/Loading';
|
|
|
|
export interface FormProps {
|
|
loading?: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const Form = ({ loading, children }: FormProps): JSX.Element => {
|
|
return (
|
|
<form
|
|
onSubmit={(e): void => {
|
|
e.preventDefault();
|
|
}}
|
|
className="relative flex-grow gap-3 p-2"
|
|
>
|
|
{loading && <Loading />}
|
|
{children}
|
|
</form>
|
|
);
|
|
};
|
|
|