import { mode } from '../tools'; function baseStyle(props: Record) { const { orientation, size } = props; const orientationProps = orientation === 'vertical' ? { width: `${size}px`, // handle for web : To be discussed height: '100%', } : { width: '100%', height: `${size}px`, }; return { bg: mode('muted.200', 'muted.500')(props), ...orientationProps, }; } export default { baseStyle, defaultProps: { orientation: 'horizontal', size: 1, }, };