website refactor
This commit is contained in:
15
apps/website/components/onboarding/OnboardingForm.tsx
Normal file
15
apps/website/components/onboarding/OnboardingForm.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { FormEvent, ReactNode } from 'react';
|
||||
import { Box } from '../../ui/primitives/Box';
|
||||
|
||||
interface OnboardingFormProps {
|
||||
children: ReactNode;
|
||||
onSubmit: (e: FormEvent) => void;
|
||||
}
|
||||
|
||||
export function OnboardingForm({ children, onSubmit }: OnboardingFormProps) {
|
||||
return (
|
||||
<Box as="form" onSubmit={onSubmit} position="relative">
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user