mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-26 12:43:00 +00:00
13 lines
340 B
JavaScript
13 lines
340 B
JavaScript
const React = require('react');
|
|
const useLocationHash = require('./useLocationHash');
|
|
|
|
const withLocationHash = (Component) => {
|
|
return (props) => {
|
|
const locationHash = useLocationHash();
|
|
return (
|
|
<Component {...props} locationHash={locationHash} />
|
|
);
|
|
};
|
|
};
|
|
|
|
module.exports = withLocationHash;
|