@use "sass:map";
@use "@twig/scss/_global" as global;
@use "@twig/scss/variables/_variables-components" as components;

$params: (
   "flex-shrink": 0,
);

@if global-variable-exists(c-header-icons, components) {
   $keys: map.keys(components.$c-header-icons);
   @each $name in $keys {
      @if not map.get($params, $name) {
         @warn "Neexistující proměnná '#{$name}' v komponentě '$#{component("Header:Icons", "class")}'.";
      }
   }

   $params: map.merge($params, components.$c-header-icons);
}

.#{component("Header:Icons", "class")} {
   display: flex;
   align-items: center;
   flex-shrink: map.get($params, "flex-shrink");
}
