import clsx from "clsx"; import { AnimatePresence, motion } from "framer-motion"; import React from "react"; import { usePollContext } from "./poll-context"; const ControlledScrollArea: React.VoidFunctionComponent<{ children?: React.ReactNode; className?: string; }> = ({ className, children }) => { const { availableSpace, scrollPosition } = usePollContext(); return (