%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/styled-components/src/utils/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/styled-components/src/utils/determineTheme.ts |
import { DefaultTheme, ExecutionProps } from '../types'; import { EMPTY_OBJECT } from './empties'; export default function determineTheme( props: ExecutionProps, providedTheme?: DefaultTheme | undefined, defaultProps: { theme?: DefaultTheme | undefined } = EMPTY_OBJECT ): DefaultTheme | undefined { return (props.theme !== defaultProps.theme && props.theme) || providedTheme || defaultProps.theme; }