18 lines
829 B
TypeScript
18 lines
829 B
TypeScript
import { t as i18nT } from "i18next";
|
|
|
|
export default function HoneypotInput({ name = "codeId" }: { name?: string }) {
|
|
return (
|
|
<div style={{ opacity: 0, position: "absolute", top: 0, left: 0, height: 0, width: 0, zIndex: -1 }}>
|
|
<label htmlFor={name} className="text-text-neutral-primary block text-sm font-medium dark:text-slate-500">
|
|
{i18nT("components.honeypot.codeId")}
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name={name}
|
|
id={name}
|
|
className="focus:border-theme-300 focus:ring-theme-300 border-border-default text-text-neutral-primary bg-surface-neutral-secondary relative block w-full appearance-none rounded-md px-3 py-2 placeholder-gray-500 focus:z-10 focus:outline-hidden sm:text-sm dark:border-gray-600 dark:bg-gray-900 dark:text-slate-200"
|
|
/>
|
|
</div>
|
|
);
|
|
}
|