()
| 39 | } |
| 40 | |
| 41 | function usePreStyle() { |
| 42 | const styles = useStyles(); |
| 43 | const preSx = React.useMemo(() => { |
| 44 | const sx = { |
| 45 | ...styles.pre |
| 46 | }; |
| 47 | Object.keys(styles.tokens).forEach(key => { |
| 48 | const classList = key |
| 49 | .split(/\s/) |
| 50 | .map(type => "." + getClassFromTokenType(type)) |
| 51 | .join(", "); |
| 52 | sx[classList] = styles.tokens[key]; |
| 53 | }); |
| 54 | return sx; |
| 55 | }, [styles]); |
| 56 | return preSx; |
| 57 | } |
| 58 | |
| 59 | const baseTitle: SxStyleProp = { |
| 60 | position: "absolute" as "absolute", |
no test coverage detected