I want to use my variable from a constant file in media query breakpoint definition. I want to write something like this:
.footer1 {
  '@media (max-width: ' + Breakpoint.mobile + 'px)': {
    position: "fixed",
    bottom: 0,
    left: 0,
    width: "100vw",
   },
  }
It throws me this error on on the plus sign in terminal:
Module build failed: SyntaxError: Unexpected token (7:28)
'@media (min-width: ' + STYLE_CONST.breakPoints.tablets + 'px)': {
                      ^
It would be great if I can use variables for defining breakpoints. Is there a solution?
 
    