'use client'; import { ComponentProps, useRef } from 'react'; import { clsx } from 'clsx/lite'; import Link from 'next/link'; import useVisibility from '@/utility/useVisibility'; import OGLoaderImage from './OGLoaderImage'; export type OGTilePropsCore = Omit< ComponentProps, 'title' | 'description' | 'path' | 'pathImage' >; export default function OGTile({ path, pathImage, description, riseOnHover, onVisible, ...props }: { description: string pathImage: string riseOnHover?: boolean onVisible?: () => void } & ComponentProps) { const ref = useRef(null); useVisibility({ ref, onVisible }); return (
{props.title}
{description}
); };