export default function getInitialState(localStorage, hosts, alerts) {
  const existingTimeSettingsString = localStorage.getItem('time');

  alerts = [
    {
      name: "High CPU",
      time: "12:00:01",
      value: "90%",
      host: "prod-influx-data-1",
      severity: "high",
    },
    {
      name: "Reavers",
      time: "12:00:02",
      value: "9000",
      host: "Firefly",
      severity: "ohgodohgod",
    },
  ];

  

  const h = {};
  hosts.forEach((host) => {
    h[host] = {url: host};
  });

  const time = Object.assign({
    bounds: {
      lower: 'now() - 15m',
      upper: 'now()',
    },
    groupByInterval: 60,
  }, JSON.parse(existingTimeSettingsString || '{}'));

  // Why are we getting hosts for all pages?
  // I've copied alerts here in the same way.
  return {
    hosts: h,
    alerts: alerts,
    time,
  };
}

@@ -136,303 +136,8 @@
 );%0A%0A
-  alerts = %5B%0A    %7B%0A      name: %22High CPU%22,%0A      time: %2212:00:01%22,%0A      value: %2290%25%22,%0A      host: %22prod-influx-data-1%22,%0A      severity: %22high%22,%0A    %7D,%0A    %7B%0A      name: %22Reavers%22,%0A      time: %2212:00:02%22,%0A      value: %229000%22,%0A      host: %22Firefly%22,%0A      severity: %22ohgodohgod%22,%0A    %7D,%0A  %5D;%0A%0A  %0A
 %0A  c

Remove unnecessary code