"use client"; import { useState, type ReactNode } from "react"; import { motion, useReducedMotion } from "motion/react"; type FlipActionProps = { children: ReactNode; className?: string; onClick?: () => void; /** Content on the back face. Defaults to the same label. */ back?: ReactNode; /** Look of the back face. */ backClassName?: string; }; /* FlipAction: on hover or focus the whole button flips over in 3D and shows its back face. */ export function FlipAction({ children, className = "rounded-full border border-[#a78bfa]/50 bg-[#1a1530] px-9 py-4 text-[15px] font-medium text-[#ede9fe]", onClick, back, backClassName = "rounded-full bg-[#a78bfa] px-9 py-4 text-[15px] font-medium text-[#1a1530]", }: FlipActionProps) { const reduce = useReducedMotion(); const [on, setOn] = useState(false); const face = "[grid-area:1/1] grid place-items-center [backface-visibility:hidden]"; return ( ); }