@devlander/styled-components-theme
Version:
Devlander's team utilizes this package during the development of their React Native projects. Its primary purpose is to facilitate code reuse by sharing types across multiple projects that uses the styled-components library.
10 lines (9 loc) • 566 B
TypeScript
import { WebTheme } from '../../shared/types/base-theme-types';
import { FunctionProviderProps } from '../../shared/types/function-provider.types';
import type { FC } from 'react';
export interface WithThemeFunctionsAndStyleWeb extends FunctionProviderProps<WebTheme> {
theme: WebTheme;
}
export type ComponentWithThemeFunctionsWeb = FC<WithThemeFunctionsAndStyleWeb>;
export type WithThemeFunctionsForWeb = FC<FunctionProviderProps<WebTheme>>;
export declare const withThemeFunctionsWeb: (Component: ComponentWithThemeFunctionsWeb) => WithThemeFunctionsForWeb;