mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 09:34:37 +08:00
12 lines
319 B
JavaScript
12 lines
319 B
JavaScript
import { mapObject } from '../helpers.js';
|
|
import { css } from '../css/index.js';
|
|
|
|
const boxConfig = {
|
|
transform(props) {
|
|
return props;
|
|
}}
|
|
|
|
export const getBoxStyle = (styles = {}) => boxConfig.transform(styles, { map: mapObject })
|
|
|
|
export const box = (styles) => css(getBoxStyle(styles))
|
|
box.raw = (styles) => styles |