Files
AFFiNE-Mirror/packages/component/src/styles/styled.tsx
2023-02-18 04:52:14 +00:00

17 lines
482 B
TypeScript

import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
import emotionStyled from '@emotion/styled';
import type { PropsWithChildren } from 'react';
import { AffineTheme } from './types';
export { css, keyframes } from '@emotion/react';
export const styled = emotionStyled;
export const ThemeProvider = ({
theme,
children,
}: PropsWithChildren<{
theme: AffineTheme;
}>) => {
return <EmotionThemeProvider theme={theme}>{children}</EmotionThemeProvider>;
};