// Copyright (c) Mysten Labs, Inc. // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 import { assignInlineVars } from '@vanilla-extract/dynamic'; import { styleDataAttributeSelector } from '../../constants/styleDataAttribute.js'; import { themeVars } from '../../themes/themeContract.js'; import type { DynamicTheme, Theme, ThemeVars } from '../../themes/themeContract.js'; type InjectedThemeStylesProps = { theme: Theme; }; export function InjectedThemeStyles({ theme }: InjectedThemeStylesProps) { const themeStyles = Array.isArray(theme) ? getDynamicThemeStyles(theme) : getStaticThemeStyles(theme); return (