mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-29 01:28:48 +00:00
8 lines
290 B
JavaScript
8 lines
290 B
JavaScript
const { useBinaryState } = require('stremio/common');
|
|
|
|
const useInLibrary = () => {
|
|
const [inLibrary, addToLibrary, removeFromLibrary, toggleInLibrary] = useBinaryState(false);
|
|
return [inLibrary, addToLibrary, removeFromLibrary, toggleInLibrary];
|
|
};
|
|
|
|
module.exports = useInLibrary;
|