website refactor
This commit is contained in:
12
apps/website/components/onboarding/OnboardingForm.tsx
Normal file
12
apps/website/components/onboarding/OnboardingForm.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
interface OnboardingFormProps {
|
||||
children: React.ReactNode;
|
||||
onSubmit: (e: React.FormEvent) => void | Promise<void>;
|
||||
}
|
||||
|
||||
export function OnboardingForm({ children, onSubmit }: OnboardingFormProps) {
|
||||
return (
|
||||
<form onSubmit={onSubmit} className="relative">
|
||||
{children}
|
||||
</form>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user