@use 'sass:map';

@mixin breakpoint($media, $min: 0, $max: 0) {
  $bpMin: map.get($breakpoints, $min);
  $bpMax: map.get($breakpoints, $max);

  @if $bpMax != 0 {
    @media only #{$media} and (min-width: $bpMin) and (max-width: $bpMax) {
      @content;
    }
  } @else {
    @media only #{$media} and (min-width: $bpMin) {
      @content;
    }
  }
}
