Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
31 lines
633 B
TypeScript
31 lines
633 B
TypeScript
'use client';
|
|
|
|
import { Mail } from 'lucide-react';
|
|
import { useTranslations } from 'next-intl';
|
|
|
|
import {
|
|
InputGroup,
|
|
InputGroupAddon,
|
|
InputGroupInput,
|
|
} from '@kit/ui/input-group';
|
|
|
|
export function EmailInput(props: React.ComponentProps<'input'>) {
|
|
const t = useTranslations('auth');
|
|
|
|
return (
|
|
<InputGroup className="dark:bg-background">
|
|
<InputGroupAddon>
|
|
<Mail className="h-4 w-4" />
|
|
</InputGroupAddon>
|
|
|
|
<InputGroupInput
|
|
data-test={'email-input'}
|
|
required
|
|
type="email"
|
|
placeholder={t('emailPlaceholder')}
|
|
{...props}
|
|
/>
|
|
</InputGroup>
|
|
);
|
|
}
|