"use client"; import { RadioGroup } from "@headlessui/react"; export const methods = [ { name: "Passkeys", description: "Authenticate with your device.", }, { name: "Password", description: "Authenticate with a password", }, ]; export default function AuthenticationMethodRadio({ selected, selectionChanged, }: { selected: any; selectionChanged: (value: any) => void; }) { return (
Server size
{methods.map((method) => ( `${ active ? "h-full ring-2 ring-opacity-60 ring-primary-light-500 dark:ring-white/20" : "h-full " } ${ checked ? "bg-background-light-400 dark:bg-background-dark-400" : "bg-background-light-400 dark:bg-background-dark-400" } relative border boder-divider-light dark:border-divider-dark flex cursor-pointer rounded-lg px-5 py-4 focus:outline-none hover:shadow-lg dark:hover:bg-white/10` } > {({ active, checked }) => ( <>
{method.name} {method.description} {" "}
{checked && (
)}
)}
))}
); } function CheckIcon(props: any) { return ( ); }