import { AnimatePresence, motion, Variants } from "framer-motion"; import { useTurboSite } from "../SiteSwitcher"; import cn from "classnames"; import styles from "../header-logo.module.css"; type LogoProps = { className?: string; height?: number; }; const LEFT_PADDING = 8; const RIGHT_PADDING = 12; // The width of the logo + wordmark. This does not include the "invisible" padding. const VISUAL_WIDTH = 112; const TurboAnimated = ({ height = 32, className = "" }: LogoProps) => { const site = useTurboSite(); return ( Turborepo {site === "repo" || site === undefined ? ( ) : ( )} {/* Turbo Wordmark */} ); }; export default TurboAnimated; const variants: Variants = { visible: { opacity: 1, x: 0, transition: { duration: 0.3, }, }, hidden: (distance) => ({ opacity: 0, x: distance, transition: { duration: 0.3, }, }), };