Files
gridpilot.gg/apps/website/components/auth/AuthForm.tsx
2026-01-18 16:18:18 +01:00

23 lines
450 B
TypeScript

'use client';
import React from 'react';
import { Stack } from '@/ui/Stack';
interface AuthFormProps {
children: React.ReactNode;
onSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
}
/**
* AuthForm
*
* Semantic form wrapper for auth flows.
*/
export function AuthForm({ children, onSubmit }: AuthFormProps) {
return (
<Stack as="form" {...({ onSubmit, noValidate: true } as any)} gap={6}>
{children}
</Stack>
);
}