"use client";
import { useRef } from "react";
import { useInView } from "framer-motion";

export function useRevealAnimation(amount: number | "some" | "all" = 0.12) {
  const ref = useRef<HTMLDivElement>(null);
  const isInView = useInView(ref, { once: true, amount });
  return { ref, isInView };
}
