import { useInView } from 'framer-motion'; import { useRef } from 'react'; import { AppearanceText } from '../../ui/AppearanceText'; import { Title } from '../../ui/Title'; import { useHover } from 'usehooks-ts'; import { getIcon } from '../../utils/getIcon'; export function MultiUser() { return (
<span className="text-gradient text-wrap">Многопользовательский </span> <br className="lg:hidden" /> режим обучения
); } function MultiUserFeature({ text, type, }: { text: string; type: 'processes' | 'plans' | 'teamwork'; }) { const ref = useRef(null); const hovered = useHover(ref); const isInView = useInView(ref, { margin: `0px 0px ${(ref.current?.clientHeight ?? 0) - window.innerHeight}px`, }); return (
{getIcon(type, hovered, 'mb-4 max-lg:hidden w-14 h-14')}
{getIcon(type, isInView, 'mb-4 lg:hidden w-14 h-14')}

{text}

); }