@use './ds-internal/_link-button' as *;

@mixin link-button(
  $variant: 'filled',
  $size: 'medium',
  $theme: 'light',
  $isFlush: false,
  $stretched: false
) {
  @if $variant == 'navigation' {
    @if $size == 'small' {
      @error "[STIHL Design System] - [ds.link-button()]: A '$size' param should not be used in combination with $variant:'navigation'. Please remove the '$size' param.";
    }

    @if $theme == 'dark' {
      @error "[STIHL Design System] - [ds.link-button()]: $variant:'navigation' param does not support $theme:'dark'. Please remove the '$theme' param.";
    }
  }
  @if $variant != 'ghost' and $isFlush == true {
    @error "[STIHL Design System] - [ds.link-button()]: $isFlush:true should only be used in combination with $variant:'ghost'. Please remove the '$isFlush' param.";
  }
  @if $variant== 'ghost' and $isFlush == true and $stretched == true {
    @error "[STIHL Design System] - [ds.link-button()]: $stretched:true and $isFlush:true do not have an effect when used together. Please remove one of them.";
  }

  @include link-button-base($theme, $stretched);
  @include link-button-size($size);
  @include link-button-variant($variant, $theme, $isFlush, $stretched);
}
