import { Button, Heading, Stack, VStack } from "@hope-ui/solid" import { createSignal, Show } from "solid-js" import { useT, useFetch } from "~/hooks" import { PEmptyResp } from "~/types" import { handleResp, notify, r } from "~/utils" interface WebauthnItemProps { id: string fingerprint: string } export const WebauthnItem = (props: WebauthnItemProps) => { const t = useT() const [removeLoading, remove] = useFetch( (): PEmptyResp => r.post(`/authn/delete_authn`, { id: props.id, }), ) const [deleted, setDeleted] = createSignal(false) return ( {"Fingerprint: " + props.fingerprint + "\tID: " + props.id} ) }