import React from 'react';

const UserAgreement: React.FC = () => {
  const src = '/user-agreement-raw.html';
  const updateDate = (import.meta.env.VITE_AGREEMENT_UPDATE_DATE as string) || '2025年5月26日';
  const effectiveDate = (import.meta.env.VITE_AGREEMENT_EFFECTIVE_DATE as string) || '2025年6月03日';

  return (
    <iframe
      title="用户协议（原站）"
      src={src}
      style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', border: 'none', background: '#fff' }}
    />
  );
};

export default UserAgreement;
