export const isClient = () => {
    return typeof window !== "undefined";
};
export const isServer = () => {
    return typeof window === "undefined";
};
export const runOnClientSide = (cb) => {
    if (!isClient())
        return;
    cb();
};
export const runOnServerSide = (cb) => {
    if (!isServer())
        return;
    cb();
};
//# sourceMappingURL=device.js.map