(cssModule: {[cssmodule: string]: string})
| 29 | } |
| 30 | |
| 31 | export function cssModuleToSlots(cssModule: {[cssmodule: string]: string}): { |
| 32 | [slot: string]: {UNSAFE_className: string}; |
| 33 | } { |
| 34 | return Object.keys(cssModule).reduce((acc, slot) => { |
| 35 | acc[slot] = {UNSAFE_className: cssModule[slot]}; |
| 36 | return acc; |
| 37 | }, {}); |
| 38 | } |
| 39 | |
| 40 | export function SlotProvider(props: { |
| 41 | slots?: {[slot: string]: object}; |
nothing calls this directly
no outgoing calls
no test coverage detected