UNPKG

react-typing-test

Version:

A react component typing test, user input and wpm calculations.

8 lines (7 loc) 436 B
import React from "react"; import { ThemeProvider } from "styled-components"; import { themes } from "./themes"; export var StyledThemeProvider = function (_a) { var children = _a.children, themeName = _a.themeName, customTheme = _a.customTheme; return customTheme ? (React.createElement(ThemeProvider, { theme: customTheme }, children)) : (React.createElement(ThemeProvider, { theme: themes[themeName] }, children)); };