storybook-addon-valkyrie-theme/dist/preview.js
2024-10-18 23:01:44 +13:00

9 lines
No EOL
465 B
JavaScript

'use strict';
var previewApi = require('@storybook/preview-api');
var o="valkyrieTheme";var s=(e,n)=>{let[l]=previewApi.useGlobals(),r=l[o],{theme:a}=n.globals;return previewApi.useEffect(()=>{i(r);},[r,a]),e()};function i(e){e?document.documentElement.dataset.misskeyTheme=e:delete document.documentElement.dataset.misskeyTheme;}var p={decorators:[s],globals:{[o]:!1}},S=p;
module.exports = S;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=preview.js.map