UNPKG

@codinggorilla/storybook-theme-changer

Version:
8 lines (7 loc) 248 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function getTheme(themeName, themes) { var theme = themes.find(function (theme) { return theme.name === themeName; }); return theme; } exports.default = getTheme;