Files
notesnook/apps/mobile/src/components/Announcements/functions.js

15 lines
272 B
JavaScript
Raw Normal View History

2021-11-22 15:12:26 +05:00
export const margins = {
0: 0,
1: 12,
2: 20
};
export const getStyle = style => {
if (!style) return {};
return {
marginTop: margins[style.marginTop] || 0,
marginBottom: margins[style.marginBottom] || 0,
textAlign: style.textAlign || 'left'
};
};