import { create } from 'storybook/theming';
export const gidsLogoFilename = 'ganpatiinfo-logo-dark.svg';
const multipleSlashes = /\/\/+/g;
const joinPath = (...parts) => {
    const path = parts.join('/').replace(multipleSlashes, '/');
    return path;
};
import '@ganpatiinfo/gids-web-theme-ganpatiinfo';
export const makeGidsTheme = ({ brandTitle, versionInformation, dark = false, }) => {
    const versonInformationSuffix = versionInformation
        ? `<br><span style="font-weight: normal;">(${versionInformation})</span>`
        : '';
    return create({
        base: dark ? 'dark' : 'light',
        brandTitle: `<div><img src="${joinPath('./', gidsLogoFilename)}" alt="Ganpatiinfo Design System" style="display: block; max-height: 60px; margin-bottom: 16px;${dark ? ' filter: invert(1);' : ''}" /><div style="padding-left: 36px">${brandTitle}${versonInformationSuffix}</div></div>`,
        brandUrl: '/',
        brandTarget: '_self',
    });
};
//# sourceMappingURL=makeGidsTheme.js.map