@@ -6,6 +6,7 @@ import InputError from '@/components/input-error';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
type Props = {
|
||||
routes?: {
|
||||
@@ -15,6 +16,7 @@ type Props = {
|
||||
label?: string;
|
||||
loadingLabel?: string;
|
||||
separator?: string;
|
||||
separatorClassName?: string;
|
||||
};
|
||||
|
||||
export default function PasskeyVerify({
|
||||
@@ -22,6 +24,7 @@ export default function PasskeyVerify({
|
||||
label,
|
||||
loadingLabel,
|
||||
separator,
|
||||
separatorClassName,
|
||||
}: Props = {}) {
|
||||
const { verify, isLoading, error, isSupported } = usePasskeyVerify({
|
||||
...(routes && {
|
||||
@@ -64,7 +67,12 @@ export default function PasskeyVerify({
|
||||
<Separator className="w-full" />
|
||||
</div>
|
||||
<div className="relative flex justify-center text-xs uppercase">
|
||||
<span className="bg-background text-muted-foreground px-2">
|
||||
<span
|
||||
className={cn(
|
||||
'bg-background text-muted-foreground px-2',
|
||||
separatorClassName,
|
||||
)}
|
||||
>
|
||||
{separator ?? 'Ou continuar com email'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user