import { clsx } from 'clsx'; import Link from 'next/link'; import styles from './card.module.scss'; import LinkIcon from '@/assets/icons/link.svg'; import { animated, useSpring } from '@react-spring/web'; import { CursorEffect } from '@/components/cursor'; type CardProps = React.DetailedHTMLProps< React.HTMLAttributes, HTMLDivElement > & { title?: string; hrefTitle?: string; href: string; }; export function CardLink(props: CardProps) { const { title, hrefTitle, href, className: restClassName, ...restProps } = props; const [springs, api] = useSpring(() => ({ scale: 1, config: { mass: 1, tension: 150, friction: 10 }, })); const handleEnter = () => { api.start({ scale: 1.01, }); }; const handleLeave = () => { api.start({ scale: 1, }); }; return (

{title}

{hrefTitle}

); }