export async function open() {
    if (!window.EyeDropper) {
        console.error("Your browser does not support the EyeDropper API")
        return null;
    }

    const eyeDropper = new EyeDropper();
    try {
        const result = await eyeDropper.open();
        return result.sRGBHex;
    }
    catch {
        return null
    }
}
