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

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

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

  .mx-file-uploader {
    &__file-name {
      color: map.get($color-theme, onSurface);
    }
    &__placeholder,
    &__clear-btn {
      color: map.get($color-theme, onSurfaceVariant);
    }

    &__img-wrapper {
      border-color: map.get($color-theme, outlineVariant);
    }
  }
}
