"use client"; import { cn } from "@/lib/utils"; import PortableTextRenderer from "@/components/portable-text-renderer"; import { motion, useInView } from "motion/react"; import { useRef } from "react"; import { PAGE_QUERY_RESULT, ColorVariant } from "@/sanity.types"; type Block = NonNullable["blocks"]>[number]; type TimelineRow = Extract; type Timeline1 = NonNullable>[number]; interface Timeline1Props extends Timeline1 { color?: ColorVariant; } export default function Timeline1({ color, title, tagLine, body, }: Timeline1Props) { const ref = useRef(null); const isInView = useInView(ref); return (

{title} {tagLine}

{body && ( )}
); }