message: Correct age restrictions option
diff: @@ -29,6 +29,8 @@ type BannerData = {
  directLink?: boolean;
  navigationType?: string;
  description?: string;
  + ageRestrictions?: number;
  + /** @deprecated */
  ageRestriction?: number;
  };
  @@ -42,13 +44,21 @@ export interface PromoBannerProps extends HTMLAttributes<HTMLDivElement> {
  }
  const PromoBanner = (props: PromoBannerProps) => {
  + const ageRestrictions = useMemo(
  + () =>
  + props.bannerData.ageRestrictions != null ? props.bannerData.ageRestrictions : props.bannerData.ageRestriction,
  + [props.bannerData.ageRestrictions, props.bannerData.ageRestriction],
  + );
  +
  const [currentPixel, setCurrentPixel] = useState('');
  - const statsPixels = useMemo(() => (
  - props.bannerData.statistics
  + const statsPixels = useMemo(
  + () =>
  + (props.bannerData.statistics
  ? props.bannerData.statistics.reduce((acc, item) => ({ ...acc, [item.type]: item.url }), {})
  - : {}
  - ) as Record<StatsType, string | void>, [props.bannerData.statistics]);
  + : {}) as Record<StatsType, string | void>,
  + [props.bannerData.statistics],
  + );
  const onClick = useCallback(() => setCurrentPixel(statsPixels.click || ''), [statsPixels.click]);
  @@ -61,7 +71,7 @@ const PromoBanner = (props: PromoBannerProps) => {
  return (
  <div className={classNames('PromoBanner', props.className)}>
  <div className="PromoBanner__head">
  - {props.bannerData.ageRestriction && <span className="PromoBanner__age">{props.bannerData.ageRestriction}+</span>}
  + {ageRestrictions && <span className="PromoBanner__age">{ageRestrictions}+</span>}
  <span className="PromoBanner__label">{props.bannerData.advertisingLabel || 'Advertisement'}</span>
  {!props.isCloseButtonHidden &&
  