"use client"; import { useState, type ReactNode } from "react"; import { motion, useReducedMotion } from "motion/react"; type FlipVaultProps = { /** Front face. Text only: the whole card is one button, so no links or buttons inside. */ front: ReactNode; /** Back face, shown after a click, Enter or Space. */ back: ReactNode; className?: string; backClassName?: string; }; /* FlipVault: the whole card turns over on click or keyboard to show its back. */ export function FlipVault({ front, back, className = "rounded-2xl border border-white/10 bg-[#16132a] p-6 text-white", backClassName = "rounded-2xl bg-[#a78bfa] p-6 text-[#1a1530]", }: FlipVaultProps) { const [flipped, setFlipped] = useState(false); const reduce = useReducedMotion(); const fade = { transition: "opacity 0.3s" }; return ( ); }