"use client";

import { cn } from "@/lib/utils";
import { FC, PropsWithChildren } from "react";

interface StickyProps {
  className?: string;
}

const Sticky: FC<PropsWithChildren & StickyProps> = ({ className, children }) => {
  return (
    <div className="fixed bottom-0 left-0 right-0 z-35">
      <div className={cn("mx-auto max-w-[440px] bg-background", className)}>
        {children}
      </div>
    </div>
  );
};

export default Sticky;