moodist/src/components/special-button/special-button.tsx
2024-02-08 19:43:50 +03:30

26 lines
449 B
TypeScript

import { cn } from '@/helpers/styles';
import styles from './special-button.module.css';
interface SpecialButtonProps {
children: React.ReactNode;
className?: string;
href: string;
}
export function SpecialButton({
children,
className,
href,
}: SpecialButtonProps) {
return (
<a
className={cn(styles.button, className)}
href={href}
rel="noreferrer"
target="_blank"
>
{children}
</a>
);
}