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 OAuth = require('oauth') | |
const async = require('async') | |
const _ = require('lodash') | |
// YOU CAN FIND THIS ON YOUR TWITTER DEVELOPER CONSOLE | |
const CLIENT_ID = 'YOUR TWITTER CONSUMER KEY' | |
const CLIENT_SECRET = 'YOUR TWITTER CONSUMER SECRET' | |
const ACCESS_TOKEN = 'YOUR ACCESS TOKEN' | |
const ACCESS_SECRET = 'YOUR ACCESS SECRET' |
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 { Dispatch, SetStateAction, useState, useEffect, useCallback, useRef } from 'react'; | |
export type StorageArea = 'sync' | 'local'; | |
// custom hook to set chrome local/sync storage | |
// should also set a listener on this specific key | |
type SetValue<T> = Dispatch<SetStateAction<T>>; | |
/** |