/** Hides RTP section in rules when the feature is disabled in options. */
export default function handleShowRTPInRulesOption(): void
{
    if (__OPTIONS__?.ui?.show_rtp_in_rules)
    {
        return;
    }

    const styleEl = document.createElement('style');

    styleEl.textContent = `
    #section_rtp {
      display: none !important;
    }
  `;
    document.head.appendChild(styleEl);
}
