You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
846 B
TypeScript
30 lines
846 B
TypeScript
import styles from './telegramLink.module.scss';
|
|
import Link, { LinkProps } from 'next/link';
|
|
import TelegramIcon from '@/assets/icons/telegram.svg';
|
|
import clsx from 'clsx';
|
|
import { CursorEffect } from '@/components/cursor';
|
|
|
|
type TelegramLinkProps = Omit<LinkProps, 'href'> & { className?: string };
|
|
|
|
export function TelegramLink(props: TelegramLinkProps) {
|
|
const { className: restClassName, ...restProps } = props;
|
|
|
|
return (
|
|
<CursorEffect
|
|
effectDistance={48}
|
|
effectForce={4}
|
|
cursorPadding={0}
|
|
className={clsx(styles.linkWrapper)}
|
|
>
|
|
<Link
|
|
{...restProps}
|
|
className={clsx(styles.link, restClassName)}
|
|
target="_blank"
|
|
href="https://t.me/ridebus"
|
|
prefetch={false}
|
|
>
|
|
<TelegramIcon className={styles.linkIcon} />
|
|
</Link>
|
|
</CursorEffect>
|
|
);
|
|
} |