feat(midsummer): WebAudio Sma grodorna jingle, plays once on first gesture

This commit is contained in:
Erik 2026-06-19 09:30:00 +02:00
parent e896ef1f21
commit 3cd2165c15
3 changed files with 68 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import { WindowRenderer } from '../windows/WindowRenderer';
import { RareNotification } from '../effects/RareNotification';
import { DeathNotification } from '../effects/DeathNotification';
import { usePlayerColors } from '../../hooks/usePlayerColors';
import { useMidsummerSound } from '../../hooks/useMidsummerSound';
import { MidsummerBanner } from '../midsummer/MidsummerBanner';
import type { DashboardState } from '../../hooks/useLiveData';
@ -16,6 +17,7 @@ interface Props {
export const MapLayout: React.FC<Props> = ({ data }) => {
const getColor = usePlayerColors();
useMidsummerSound();
const [showHeatmap, setShowHeatmap] = useState(false);
const [showPortals, setShowPortals] = useState(false);
const [selectedPlayer, setSelectedPlayer] = useState<string | null>(null);