feat: announcement dialog

This commit is contained in:
ammarahm-ed
2021-11-22 15:12:26 +05:00
parent 05a9019c69
commit ff33619865
15 changed files with 401 additions and 29 deletions

View File

@@ -0,0 +1,14 @@
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'
};
};