7 lines
182 B
JavaScript
7 lines
182 B
JavaScript
export function getStyles(top, zIndex) {
|
|
const topStyle = top ? `top:${top}px;` : '';
|
|
const zIndexStyle = zIndex ? `z-index:${zIndex};` : '';
|
|
return topStyle + zIndexStyle;
|
|
}
|
|
|