lucide.createIcons();
(function () {
  var btn = document.getElementById('themeBtn');
  if (localStorage.getItem('pg-doc-theme') === 'dark') {
    document.documentElement.setAttribute('data-theme', 'dark');
  }
  btn.addEventListener('click', function () {
    var root = document.documentElement;
    if (root.getAttribute('data-theme') === 'dark') {
      root.removeAttribute('data-theme');
      localStorage.setItem('pg-doc-theme', 'light');
    } else {
      root.setAttribute('data-theme', 'dark');
      localStorage.setItem('pg-doc-theme', 'dark');
    }
  });
})();
