mirror of
https://github.com/remvze/moodist.git
synced 2026-03-10 05:53:13 +08:00
28 lines
508 B
TypeScript
28 lines
508 B
TypeScript
import { cn } from '@/helpers/styles';
|
|
|
|
import styles from './special-button.module.css';
|
|
|
|
interface SpecialButtonProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
href: string;
|
|
internal?: boolean;
|
|
}
|
|
|
|
export function SpecialButton({
|
|
children,
|
|
className,
|
|
href,
|
|
internal,
|
|
}: SpecialButtonProps) {
|
|
return (
|
|
<a
|
|
className={cn(styles.button, className)}
|
|
href={href}
|
|
{...(!internal ? { rel: 'noreferrer', target: '_blank' } : {})}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|