<script setup lang="ts">
import { PinInputInput } from "reka-ui";
import { cn } from "@/lib/utils";

const props = defineProps<{
  index: number;
  class?: string;
}>();
</script>

<template>
  <PinInputInput
    :index="props.index"
    :class="
      cn(
        'border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring relative flex h-9 w-9 items-center justify-center border-y border-r text-center text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md focus:z-10 focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
        props.class,
      )
    "
  />
</template>
