'use client';

import QRCode from 'react-qr-code';

interface LabCaseShareQrCodeProps {
  value: string;
  size?: number;
  className?: string;
}

export function LabCaseShareQrCode({ value, size = 128, className }: LabCaseShareQrCodeProps) {
  return (
    <QRCode
      value={value}
      size={size}
      level="M"
      className={className}
      style={{ height: 'auto', maxWidth: '100%', width: '100%' }}
    />
  );
}
