Files
nodeMap/node_modules/@mui/material/utils/memoTheme.d.ts

14 lines
428 B
TypeScript

import { CSSInterpolation } from '@mui/styled-engine';
import { Theme } from '../styles/createTheme';
type ThemeStyleFunction = (props: {
theme: Theme;
}) => CSSInterpolation;
/**
* Memoize style function on theme.
* Intended to be used in styled() calls that only need access to the theme.
*/
export default function memoTheme(styleFn: ThemeStyleFunction): (props: {
theme: Theme;
}) => CSSInterpolation;
export {};