{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "verification-code",
  "title": "Verification Code",
  "description": "A one-time code screen with a resend countdown, wrong-code and success states, in wording that never reveals whether an address exists: one card, beside what to look for in the inbox, or a row inside your own form.",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "utils",
    "https://miseui.junsu4621.workers.dev/r/motion.json",
    "https://miseui.junsu4621.workers.dev/r/button.json",
    "https://miseui.junsu4621.workers.dev/r/input-otp.json"
  ],
  "files": [
    {
      "path": "registry/miseui/blocks/verification-code.tsx",
      "content": "import type * as React from \"react\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { VerificationInline } from \"./verification-code-inline\"\nimport { CodeForm, VerifiedScreen, type CodeFormProps, type VerifiedProps } from \"./verification-code-parts\"\nimport { VerificationSplit } from \"./verification-code-split\"\nimport { useVerification, WRONG_CODE } from \"./verification-code-state\"\n\ntype VerificationCodeVariant = \"card\" | \"split\" | \"inline\"\n\nconst PREVIEW_DELAY_MS = 900\nconst PREVIEW_CODE = \"246810\"\nconst DEFAULT_LENGTH = 6\nconst DEFAULT_RESEND_SECONDS = 30\nconst DEFAULT_TIPS: readonly string[] = [\"Not there after a minute? Look in spam or promotions.\", \"Each new code replaces the one before it.\"]\n\n/** Stands in until you pass onVerify, so the preview reaches the wrong-code and success states. Replace it. */\nfunction previewVerify(code: string) {\n  return new Promise<void>((resolve, reject) => {\n    window.setTimeout(() => (code === PREVIEW_CODE ? resolve() : reject(new Error(WRONG_CODE))), PREVIEW_DELAY_MS)\n  })\n}\n\nfunction previewResend() {\n  return new Promise<void>((resolve) => {\n    window.setTimeout(resolve, PREVIEW_DELAY_MS)\n  })\n}\n\ninterface VerificationCodeProps extends Omit<React.ComponentProps<\"section\">, \"title\"> {\n  /** `card` one card on the grey ground, `split` the form beside what to look for in the inbox, `inline` a row inside your own form. Anything else is `card`. */\n  variant?: VerificationCodeVariant\n  /** Where the code went. It is only repeated back, in words that do not say whether it has an account. */\n  destination?: string\n  title?: string\n  /** The quieter second part of the heading. The default never says the address exists, so this screen cannot be used to test addresses. */\n  note?: string\n  length?: number\n  /** Check the code here. Return a promise to get the checking state. A rejection's message is announced and shown, so keep it about the code. */\n  onVerify?: (code: string) => void | Promise<void>\n  /** Send another. A rejection's message is announced and shown. */\n  onResend?: () => void | Promise<void>\n  /** How long before another code may be requested. Long enough for mail to arrive. */\n  resendAfterSeconds?: number\n  /** An error you already know about, such as too many tries. */\n  error?: string\n  /** Under the field, for anything true about the code, such as how long it lasts. */\n  hint?: string\n  /** Puts the caret in the field on arrival. Turn it on when this is the whole screen. */\n  autoFocus?: boolean\n  verifyLabel?: string\n  /** Where \"Use a different email\" goes. Null removes it. */\n  changeHref?: string | null\n  changeLabel?: string\n  sentNote?: string\n  verifiedTitle?: string\n  verifiedNote?: string\n  continueLabel?: string\n  onContinue?: () => void\n  /** `split` only: the name and subject on the real message. */\n  sender?: string\n  subject?: string\n  tips?: readonly string[]\n}\n\ninterface CardProps extends React.ComponentProps<\"section\"> {\n  title: string\n  note: string\n  form: CodeFormProps\n  verified: VerifiedProps\n}\n\nfunction VerificationCard({ title, note, form, verified, className, ...props }: CardProps) {\n  return (\n    <section data-slot=\"verification-code\" data-variant=\"card\" className={cn(\"@container flex w-full flex-col bg-muted dark:bg-background\", className)} {...props}>\n      <div className=\"flex min-h-[640px] flex-1 flex-col items-center justify-center px-4 py-12 @md:px-6\">\n        <div className=\"flex w-full max-w-sm flex-col gap-6 rounded-2xl border bg-background p-6 @md:p-8 dark:bg-card\">\n          {form.flow.verified ? (\n            <VerifiedScreen {...verified} />\n          ) : (\n            <>\n              <h2 className=\"text-display text-2xl leading-[1.12]! text-balance wrap-break-word\">\n                {title} <span className=\"text-muted-foreground\">{note}</span>\n              </h2>\n              <CodeForm {...form} />\n            </>\n          )}\n        </div>\n      </div>\n    </section>\n  )\n}\n\nfunction VerificationCode({\n  variant,\n  destination = \"maya@northgate.studio\",\n  title = \"Enter your code.\",\n  note,\n  length = DEFAULT_LENGTH,\n  onVerify = previewVerify,\n  onResend = previewResend,\n  resendAfterSeconds = DEFAULT_RESEND_SECONDS,\n  error,\n  hint,\n  autoFocus,\n  verifyLabel = \"Verify\",\n  changeHref = \"#change-email\",\n  changeLabel = \"Use a different email\",\n  sentNote = \"A new code is on its way, if this address has an account.\",\n  verifiedTitle = \"Code accepted.\",\n  verifiedNote = \"You can carry on.\",\n  continueLabel = \"Continue\",\n  onContinue,\n  sender = \"Paperline\",\n  subject = \"Your Paperline code\",\n  tips = DEFAULT_TIPS,\n  ...props\n}: VerificationCodeProps) {\n  const flow = useVerification({ length, onVerify, onResend, resendAfterSeconds, error })\n  const quiet = note ?? `If ${destination} has an account, a ${length}-digit code is on its way.`\n  const form = { flow, label: \"Verification code\", length, hint, autoFocus, verifyLabel, changeHref, changeLabel, sentNote }\n  const verified = { title: verifiedTitle, note: verifiedNote, continueLabel, onContinue }\n  if (variant === \"split\") return <VerificationSplit title={title} note={quiet} form={form} verified={verified} sender={sender} subject={subject} tips={tips} {...props} />\n  if (variant === \"inline\") return <VerificationInline flow={flow} label={title} note={quiet} length={length} hint={hint} autoFocus={autoFocus} sentNote={sentNote} verifiedTitle={verifiedTitle} {...props} />\n  return <VerificationCard title={title} note={quiet} form={form} verified={verified} {...props} />\n}\n\nexport { VerificationCode, type VerificationCodeProps, type VerificationCodeVariant }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/verification-code-inline.tsx",
      "content": "import type * as React from \"react\"\nimport { Loader2 } from \"lucide-react\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { CodeField, ResendButton, ResendNote, VerifiedMark, type VerificationCopy } from \"./verification-code-parts\"\nimport type { Verification } from \"./verification-code-state\"\n\ninterface InlineProps extends React.ComponentProps<\"section\">, VerificationCopy {\n  flow: Verification\n  label: string\n  note: string\n  sentNote: string\n  verifiedTitle: string\n}\n\n/** No button: the last digit submits, and a row inside someone else's form should not bring a second primary action. */\nfunction VerificationInline({ flow, label, note, length, hint, autoFocus, sentNote, verifiedTitle, className, ...props }: InlineProps) {\n  const submit = (event: React.FormEvent<HTMLFormElement>) => {\n    event.preventDefault()\n    void flow.verify(flow.code)\n  }\n  return (\n    <section data-slot=\"verification-code\" data-variant=\"inline\" className={cn(\"@container w-full\", className)} {...props}>\n      {flow.verified ? (\n        <div role=\"status\" className=\"flex items-center gap-3\">\n          <VerifiedMark className=\"size-8 [&_svg]:size-4\" />\n          <p className=\"text-[15px]\">{verifiedTitle}</p>\n        </div>\n      ) : (\n        <form noValidate onSubmit={submit} className=\"grid grid-cols-[minmax(0,1fr)] gap-3 @2xl:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] @2xl:gap-6\">\n          <div className=\"min-w-0\">\n            <p className=\"text-[15px] leading-normal font-medium text-balance\">{label}</p>\n            <p className=\"mt-1 text-[13px] leading-relaxed text-pretty wrap-break-word text-muted-foreground\">{note}</p>\n          </div>\n          <div className=\"flex min-w-0 flex-col gap-1\">\n            <CodeField flow={flow} label={label} labelHidden otpVariant=\"joined\" length={length} hint={hint} autoFocus={autoFocus} />\n            <div className=\"flex min-h-9 flex-wrap items-center justify-between gap-x-2 pointer-coarse:min-h-10\">\n              <ResendButton flow={flow} className=\"-ms-3\" />\n              {flow.checking ? (\n                <span role=\"status\" className=\"inline-flex items-center gap-2 text-[13px] text-muted-foreground\">\n                  <Loader2 aria-hidden=\"true\" className=\"size-4 animate-spin motion-reduce:animate-none\" />\n                  Checking\n                </span>\n              ) : null}\n            </div>\n            <ResendNote flow={flow} sentNote={sentNote} />\n          </div>\n        </form>\n      )}\n    </section>\n  )\n}\n\nexport { VerificationInline }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/verification-code-parts.tsx",
      "content": "import type * as React from \"react\"\r\nimport { useEffect, useId, useRef } from \"react\"\r\nimport { Check, Loader2 } from \"lucide-react\"\r\nimport { motion, useReducedMotion } from \"motion/react\"\r\nimport { SPRING_DEFAULT } from \"@/registry/miseui/lib/motion\"\r\nimport { cn } from \"@/registry/miseui/lib/utils\"\r\nimport { Button } from \"@/registry/miseui/ui/button\"\r\nimport { InputOTP, type InputOTPVariant } from \"@/registry/miseui/ui/input-otp\"\r\nimport type { Verification } from \"./verification-code-state\"\r\n\r\nconst MARK_START = { opacity: 0, scale: 0.6 }\r\nconst MARK_END = { opacity: 1, scale: 1 }\r\n\r\ninterface VerificationCopy {\r\n  length: number\r\n  /** Under the field, for anything true about the code: how long it lasts, or the example code in a preview. */\r\n  hint?: string\r\n  autoFocus?: boolean\r\n}\r\n\r\ninterface CodeFieldProps extends VerificationCopy {\r\n  flow: Verification\r\n  label: string\r\n  otpVariant?: InputOTPVariant\r\n  /** For a label placed outside the field, such as in a row. */\r\n  labelHidden?: boolean\r\n}\r\n\r\n/** The field and everything said about it. The error is role alert, so a screen reader hears it without leaving the field. */\r\nfunction CodeField({ flow, label, length, hint, autoFocus, otpVariant = \"boxes\", labelHidden }: CodeFieldProps) {\r\n  const fieldId = useId()\r\n  const errorId = useId()\r\n  const fieldRef = useRef<HTMLInputElement>(null)\r\n  // The field was disabled during the check and lost focus. After a wrong code it is the next thing to use.\r\n  useEffect(() => {\r\n    if (flow.error) fieldRef.current?.focus()\r\n  }, [flow.error])\r\n  return (\r\n    <div className=\"flex min-w-0 flex-col gap-2\">\r\n      <label htmlFor={fieldId} className={labelHidden ? \"sr-only\" : \"text-[13px] leading-5 font-medium\"}>\r\n        {label}\r\n      </label>\r\n      <InputOTP\r\n        ref={fieldRef}\r\n        id={fieldId}\r\n        aria-describedby={flow.error ? errorId : undefined}\r\n        length={length}\r\n        variant={otpVariant}\r\n        value={flow.code}\r\n        error={Boolean(flow.error)}\r\n        disabled={flow.checking}\r\n        autoFocus={autoFocus}\r\n        onValueChange={flow.change}\r\n        onComplete={(value) => void flow.verify(value)}\r\n        className=\"flex w-full\"\r\n      />\r\n      {flow.error ? (\r\n        <p id={errorId} role=\"alert\" className=\"text-[13px] leading-snug text-pretty text-destructive\">\r\n          {flow.error}\r\n        </p>\r\n      ) : null}\r\n      {hint ? <p className=\"text-[13px] leading-snug text-pretty text-muted-foreground\">{hint}</p> : null}\r\n    </div>\r\n  )\r\n}\r\n\r\n/** aria-disabled and not disabled: pressing this starts the wait, and a disabled button would drop keyboard focus. */\r\nfunction ResendButton({ flow, className }: { flow: Verification; className?: string }) {\r\n  const waiting = flow.secondsLeft > 0 || flow.sending\r\n  return (\r\n    <Button\r\n      type=\"button\"\r\n      variant=\"ghost\"\r\n      aria-disabled={waiting || undefined}\r\n      aria-busy={flow.sending || undefined}\r\n      onClick={() => void flow.resend()}\r\n      className={cn(\"tabular-nums pointer-coarse:h-10\", waiting && \"text-muted-foreground hover:bg-transparent hover:text-muted-foreground\", className)}\r\n    >\r\n      {flow.sending ? <Loader2 aria-hidden=\"true\" className=\"animate-spin motion-reduce:animate-none\" /> : null}\r\n      {flow.secondsLeft > 0 ? `Send a new code in ${flow.secondsLeft}s` : \"Send a new code\"}\r\n    </Button>\r\n  )\r\n}\r\n\r\n/** Always mounted, so the live region exists before there is anything to say. The countdown itself stays out of it. */\r\nfunction ResendNote({ flow, sentNote }: { flow: Verification; sentNote: string }) {\r\n  return (\r\n    <>\r\n      <p role=\"status\" className=\"text-[13px] leading-5 text-pretty text-muted-foreground empty:sr-only\">\r\n        {flow.sent ? sentNote : \"\"}\r\n      </p>\r\n      {flow.resendError ? (\r\n        <p role=\"alert\" className=\"text-[13px] leading-snug text-pretty text-destructive\">\r\n          {flow.resendError}\r\n        </p>\r\n      ) : null}\r\n    </>\r\n  )\r\n}\r\n\r\ninterface CodeFormProps extends VerificationCopy {\r\n  flow: Verification\r\n  label: string\r\n  verifyLabel: string\r\n  changeHref: string | null\r\n  changeLabel: string\r\n  sentNote: string\r\n}\r\n\r\nfunction CodeForm({ flow, label, length, hint, autoFocus, verifyLabel, changeHref, changeLabel, sentNote }: CodeFormProps) {\r\n  const submit = (event: React.FormEvent<HTMLFormElement>) => {\r\n    event.preventDefault()\r\n    void flow.verify(flow.code)\r\n  }\r\n  return (\r\n    <form noValidate onSubmit={submit} className=\"flex flex-col gap-4\">\r\n      <CodeField flow={flow} label={label} length={length} hint={hint} autoFocus={autoFocus} />\r\n      <Button type=\"submit\" variant=\"mise\" aria-busy={flow.checking || undefined} disabled={flow.checking} className=\"w-full pointer-coarse:h-10\">\r\n        {flow.checking ? <Loader2 aria-hidden=\"true\" className=\"animate-spin motion-reduce:animate-none\" /> : null}\r\n        {flow.checking ? \"Checking the code\" : verifyLabel}\r\n      </Button>\r\n      <div className=\"flex flex-wrap items-center justify-between gap-x-2\">\r\n        <ResendButton flow={flow} className=\"-mx-3\" />\r\n        {changeHref ? (\r\n          <Button asChild variant=\"ghost\" className=\"-mx-3 text-muted-foreground pointer-coarse:h-10\">\r\n            <a href={changeHref}>{changeLabel}</a>\r\n          </Button>\r\n        ) : null}\r\n      </div>\r\n      <ResendNote flow={flow} sentNote={sentNote} />\r\n    </form>\r\n  )\r\n}\r\n\r\n/** Emerald and not the accent: this is a result, and the accent may itself be red. */\r\nfunction VerifiedMark({ className }: { className?: string }) {\r\n  const reduceMotion = useReducedMotion()\r\n  return (\r\n    <motion.span\r\n      data-testid=\"verified-mark\"\r\n      className={cn(\"grid size-12 place-items-center rounded-full bg-emerald-500/10 text-emerald-600 dark:text-emerald-400\", className)}\r\n      initial={reduceMotion ? false : MARK_START}\r\n      animate={MARK_END}\r\n      transition={SPRING_DEFAULT}\r\n    >\r\n      <Check aria-hidden=\"true\" className=\"size-6\" />\r\n    </motion.span>\r\n  )\r\n}\r\n\r\ninterface VerifiedProps {\r\n  title: string\r\n  note: string\r\n  continueLabel: string\r\n  onContinue?: () => void\r\n}\r\n\r\nfunction VerifiedScreen({ title, note, continueLabel, onContinue }: VerifiedProps) {\r\n  const headingRef = useRef<HTMLHeadingElement>(null)\r\n  // The form has just gone, so this takes focus: a screen reader hears the result instead of silence.\r\n  useEffect(() => headingRef.current?.focus(), [])\r\n  return (\r\n    <div className=\"flex flex-col items-start gap-6\">\r\n      <VerifiedMark />\r\n      <h2 ref={headingRef} tabIndex={-1} className=\"text-display text-3xl leading-[1.12]! text-balance outline-none\">\r\n        {title} <span className=\"text-muted-foreground\">{note}</span>\r\n      </h2>\r\n      <Button variant=\"mise\" onClick={onContinue} className=\"w-full pointer-coarse:h-10\">\r\n        {continueLabel}\r\n      </Button>\r\n    </div>\r\n  )\r\n}\r\n\r\nexport { CodeField, CodeForm, ResendButton, ResendNote, VerifiedMark, VerifiedScreen, type CodeFormProps, type VerifiedProps, type VerificationCopy }\r\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/verification-code-split.tsx",
      "content": "import type * as React from \"react\"\nimport { cn } from \"@/registry/miseui/lib/utils\"\nimport { CodeForm, VerifiedScreen, type CodeFormProps, type VerifiedProps } from \"./verification-code-parts\"\n\ninterface SplitProps extends React.ComponentProps<\"section\"> {\n  title: string\n  note: string\n  form: CodeFormProps\n  verified: VerifiedProps\n  /** The name on the email, so it can be picked out of an inbox. */\n  sender: string\n  subject: string\n  /** What can go wrong while waiting. Keep them true for your own mail. */\n  tips: readonly string[]\n}\n\n/** A sketch of the message, not a real one: the code stays out of it, because nobody should read a code off this page. */\nfunction MailFragment({ sender, subject, length }: { sender: string; subject: string; length: number }) {\n  return (\n    <div data-testid=\"mail-fragment\" aria-hidden=\"true\" className=\"rounded-2xl border bg-background p-4 shadow-[0_16px_32px_-16px_rgb(0_0_0/0.25)] dark:bg-card dark:shadow-none\">\n      <p className=\"truncate text-[13px] font-medium\">{sender}</p>\n      <p className=\"truncate text-[13px] text-muted-foreground\">{subject}</p>\n      <div className=\"mt-4 flex gap-1\">\n        {Array.from({ length }, (_, index) => (\n          <span key={index} className=\"h-8 min-w-0 flex-1 rounded-md bg-muted dark:bg-background\" />\n        ))}\n      </div>\n    </div>\n  )\n}\n\n/** Beside the form, because the person is about to leave for their inbox: they should know what to look for before they go. */\nfunction VerificationSplit({ title, note, form, verified, sender, subject, tips, className, ...props }: SplitProps) {\n  return (\n    <section data-slot=\"verification-code\" data-variant=\"split\" className={cn(\"@container flex w-full flex-col bg-background\", className)} {...props}>\n      <div className=\"grid min-h-[640px] flex-1 grid-cols-[minmax(0,1fr)] @3xl:grid-cols-2\">\n        <div className=\"flex items-center justify-center px-4 py-12 @3xl:px-12\">\n          <div className=\"flex w-full max-w-sm flex-col gap-8\">\n            {form.flow.verified ? (\n              <VerifiedScreen {...verified} />\n            ) : (\n              <>\n                <h2 className=\"text-display text-3xl leading-[1.12]! text-balance wrap-break-word\">\n                  {title} <span className=\"text-muted-foreground\">{note}</span>\n                </h2>\n                <CodeForm {...form} />\n              </>\n            )}\n          </div>\n        </div>\n        <div className=\"flex items-center justify-center bg-muted px-4 py-12 @3xl:px-12\">\n          <div className=\"flex w-full max-w-sm flex-col gap-6\">\n            <h3 className=\"text-title text-xl text-balance\">\n              What to look for. <span className=\"text-muted-foreground\">A message with this name and subject.</span>\n            </h3>\n            <MailFragment sender={sender} subject={subject} length={form.length} />\n            <ul className=\"flex flex-col gap-2 text-[13px] leading-relaxed text-pretty text-muted-foreground\">\n              {tips.map((tip) => (\n                <li key={tip}>{tip}</li>\n              ))}\n            </ul>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { VerificationSplit }\n",
      "type": "registry:component"
    },
    {
      "path": "registry/miseui/blocks/verification-code-state.ts",
      "content": "import { useEffect, useState } from \"react\"\n\nconst WRONG_CODE = \"That code did not work. Check it, or send a new one.\"\nconst RESEND_FAILED = \"Could not send a new code. Check your connection and try again.\"\nconst TICK_MS = 1000\n\n/** Reads the clock rather than counting ticks, because a background tab throttles timers and a count would run slow. */\nfunction useCountdown(seconds: number) {\n  const [round, setRound] = useState(0)\n  const [secondsLeft, setSecondsLeft] = useState(seconds)\n  useEffect(() => {\n    if (seconds <= 0) return\n    const end = Date.now() + seconds * 1000\n    const id = window.setInterval(() => {\n      const left = Math.max(0, Math.ceil((end - Date.now()) / 1000))\n      setSecondsLeft(left)\n      if (left === 0) window.clearInterval(id)\n    }, TICK_MS)\n    return () => window.clearInterval(id)\n  }, [round, seconds])\n  const restart = () => {\n    setSecondsLeft(seconds)\n    setRound((current) => current + 1)\n  }\n  return { secondsLeft, restart }\n}\n\n/** The wait before another code may go out, and the sending itself. */\nfunction useResend(onResend: () => void | Promise<void>, seconds: number, onSent: () => void) {\n  const { secondsLeft, restart } = useCountdown(seconds)\n  const [sending, setSending] = useState(false)\n  const [sent, setSent] = useState(false)\n  const [resendError, setResendError] = useState<string>()\n\n  const resend = async () => {\n    if (secondsLeft > 0 || sending) return\n    setSending(true)\n    setSent(false)\n    setResendError(undefined)\n    try {\n      await onResend()\n      setSent(true)\n      restart()\n      onSent()\n    } catch (problem) {\n      setResendError(problem instanceof Error ? problem.message : RESEND_FAILED)\n    } finally {\n      setSending(false)\n    }\n  }\n\n  return { secondsLeft, sending, sent, resendError, resend, clearSent: () => setSent(false) }\n}\n\ninterface VerificationOptions {\n  length: number\n  onVerify: (code: string) => void | Promise<void>\n  onResend: () => void | Promise<void>\n  resendAfterSeconds: number\n  error?: string\n}\n\nfunction useVerification({ length, onVerify, onResend, resendAfterSeconds, error: outerError }: VerificationOptions) {\n  const [code, setCode] = useState(\"\")\n  const [checking, setChecking] = useState(false)\n  const [verified, setVerified] = useState(false)\n  const [localError, setLocalError] = useState<string>()\n  const clearCode = () => {\n    setCode(\"\")\n    setLocalError(undefined)\n  }\n  const { clearSent, ...resend } = useResend(onResend, resendAfterSeconds, clearCode)\n\n  const verify = async (value: string) => {\n    if (checking || verified) return\n    if (value.length < length) return setLocalError(`Enter all ${length} digits.`)\n    setChecking(true)\n    setLocalError(undefined)\n    clearSent()\n    try {\n      await onVerify(value)\n      setVerified(true)\n    } catch (problem) {\n      // Cleared, so the next digit starts a new try instead of landing after the wrong one.\n      setCode(\"\")\n      setLocalError(problem instanceof Error ? problem.message : WRONG_CODE)\n    } finally {\n      setChecking(false)\n    }\n  }\n\n  const change = (value: string) => {\n    setCode(value)\n    setLocalError(undefined)\n  }\n\n  return { code, checking, verified, error: localError ?? outerError, change, verify, ...resend }\n}\n\ntype Verification = ReturnType<typeof useVerification>\n\nexport { useCountdown, useVerification, WRONG_CODE, type Verification }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "blocks"
  ],
  "type": "registry:block"
}