MCPcopy
hub / github.com/iamhosseindhv/notistack / makeStyles

Function makeStyles

src/utils/styles.ts:3–13  ·  view source on GitHub ↗
(
    styles: S
)

Source from the content-addressed store, hash-verified

1import { css, CSSAttribute } from 'goober';
2
3export function makeStyles<S extends { [key: string]: CSSAttribute }, K extends keyof S>(
4 styles: S
5): { [key in K]: string } {
6 return Object.entries(styles).reduce(
7 (acc, [key, value]) => ({
8 ...acc,
9 [key]: css(value),
10 }),
11 {} as { [key in K]: string }
12 );
13}
14
15export const ComponentClasses = {
16 SnackbarContainer: 'notistack-SnackbarContainer',

Callers 8

Collapse.tsxFile · 0.90
SnackbarItem.tsxFile · 0.90
ReportComplete.jsFile · 0.90
ReportComplete.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…