@use 'sass:map';
@use '../../../mx-core/src/base/colors';

@mixin mx-page-title-theme($theme) {
  $is-dark: map.get($theme, is-dark);
  $color-theme: colors.$mx-light;

  @if $is-dark {
    $color-theme: colors.$mx-dark;
  }

  .mx-page-title-wrapper {
    .mat-icon-button {
      color: map.get($color-theme, onSurfaceVariant);
    }

    .mx-page-title {
      color: map.get($color-theme, onSurface);
    }
  }
}
