import { cn } from "@/lib/utils"; import React, { type ReactNode } from "react"; export const SlidingButton = ({ children, slidingContent, as: Tag = "button", href, target, className, ...props }: { children: ReactNode; slidingContent: ReactNode; as?: React.ElementType; href?: string; target?: string; className?: string; } & ( | React.ComponentPropsWithoutRef<"a"> | React.ComponentPropsWithoutRef<"button"> )) => { return ( {children}
{slidingContent}
); };