This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useEffect, useRef, useState } from "react"; | |
interface UseBroadcastChannelOptions { | |
name: string; | |
onMessage?: (event: MessageEvent) => void; | |
onMessageError?: (event: MessageEvent) => void; | |
} | |
interface UseBroadcastChannelReturn<D, P> { | |
isSupported: boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e8.svg", | |
"country": "Ascension Island", | |
"code": "ac" | |
}, | |
{ | |
"flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e9.svg", | |
"country": "Andorra", | |
"code": "ad" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { src, dest, watch, series, task } = require('gulp'); | |
const postcss = require('gulp-postcss'); | |
const autoprefixer = require('autoprefixer'); | |
const cssnext = require('cssnext'); | |
const precss = require('precss'); | |
const cssnano = require('cssnano'); | |
const sass = require('gulp-sass'); | |
const fontMagician = require('postcss-font-magician'); | |
const rtlcss = require('rtlcss'); | |
const rename = require('gulp-rename'); |