"use client"; import { AnimatePresence, motion } from "framer-motion"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; import { SkeletonText } from "@calcom/ui/components/skeleton"; type OnboardingCardProps = { title: string; subtitle: string; children?: ReactNode; footer?: ReactNode; isLoading?: boolean; floatingFooter?: boolean; }; export const OnboardingCard = ({ title, subtitle, children, footer, isLoading, floatingFooter = false, }: OnboardingCardProps) => { const pathname = usePathname(); // Animation variants for entry and exit const containerVariants = { initial: { opacity: 0, y: 20, }, animate: { opacity: 1, y: 0, }, exit: { opacity: 0, y: -20, }, }; return (
{subtitle}