import type { Platform } from "./types";

export function detectPlatform(): Platform {
    const w = window as any;
    if (w?.Telegram?.WebApp) return "tg";
    if (w?.vkBridge) return "vk";
    return "web";
}
