Pip.tsx

321 B · raw

1import { createSignal } from "solid-js";23export function Pip() {4  const [pulsing, setPulsing] = createSignal(false);56  function pulse() {7    setPulsing(true);8    setTimeout(() => setPulsing(false), 400);9  }1011  (window as any).__peachPipPulse = pulse;1213  return <span class={`pip ${pulsing() ? "pulse" : ""}`} />;14}