import { companyInfo } from '@/lib/company';
import Button from './Button';

interface InstagramLinkProps {
  variant?: 'primary' | 'secondary' | 'outline';
  children?: React.ReactNode;
}

export default function InstagramLink({
  variant = 'primary',
  children,
}: InstagramLinkProps) {
  const instagramUrl = `https://instagram.com/${companyInfo.instagram}`;
  const text = children || `Написать в Instagram`;

  return (
    <Button
      href={instagramUrl}
      variant={variant}
      className="instagram-link"
    >
      {text}
    </Button>
  );
}

