kleros/kleros-v2

View on GitHub
web-devtools/src/context/StyledComponentsProvider.tsx

Summary

Maintainability
A
0 mins
Test Coverage
"use client";
import React from "react";
import { ThemeProvider } from "styled-components";

import { theme } from "styles/Theme";

import { GlobalStyle } from "styles/global-style";

const StyledComponentsProvider: React.FC<{
  children: React.ReactNode;
}> = ({ children }) => {
  return (
    <ThemeProvider theme={theme}>
      <GlobalStyle />
      {children}
    </ThemeProvider>
  );
};

export default StyledComponentsProvider;