"use client"; import { useState, type PropsWithChildren } from "react"; import { Heading } from "../ui/heading"; import Image from "next/image"; import { Button } from "../ui/button"; import { cn } from "@/lib/utils"; import { anchorTags } from "@/lib/routes"; import { LoadingSkeleton } from "../ui/loading-skeleton"; const mockImage = "https://images.unsplash.com/photo-1524758631624-e2822e304c36?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80"; export const CollectionHeaderWrapper = ( props: PropsWithChildren<{ heading: string }> ) => { const [showMore, setShowMore] = useState(false); return (
mock image
{props.heading}
{!showMore && (
)} {props.children}
); };