message: fix(SubnavigationBar): Pass HorizontalScroll arrow and scrolling props
diff: @@ -2,29 +2,51 @@ import * as React from 'react';
  import { usePlatform } from '../../hooks/usePlatform';
  import { classNames } from '../../lib/classNames';
  import { getClassName } from '../../helpers/getClassName';
  -import HorizontalScroll from '../HorizontalScroll/HorizontalScroll';
  +import HorizontalScroll, { HorizontalScrollProps, ScrollPositionHandler } from '../HorizontalScroll/HorizontalScroll';
  import './SubnavigationBar.css';
  -export interface SubnavigationBarProps extends React.HTMLAttributes<HTMLDivElement> {
  +export interface SubnavigationBarProps extends
  + React.HTMLAttributes<HTMLDivElement>,
  + Pick<HorizontalScrollProps, 'showArrows' | 'getScrollToLeft' | 'getScrollToRight' | 'scrollAnimationDuration'> {
  mode?: 'fixed' | 'overflow';
  }
  -export const SubnavigationBar: React.FC<SubnavigationBarProps> = (props: SubnavigationBarProps) => {
  - const platform = usePlatform();
  - const {
  - mode,
  +const defaultScrollToLeft: ScrollPositionHandler = (x) => x - 240;
  +
  +const defaultScrollToRight: ScrollPositionHandler = (x) => x + 240;
  +
  +export const SubnavigationBar: React.FC<SubnavigationBarProps> = ({
  + mode = 'overflow',
  children,
  + showArrows = true,
  + getScrollToLeft = defaultScrollToLeft,
  + getScrollToRight = defaultScrollToRight,
  + scrollAnimationDuration,
  ...restProps
  - } = props;
  +}: SubnavigationBarProps) => {
  + const platform = usePlatform();
  - const ScrollWrapper = mode === 'fixed' ? 'div' : HorizontalScroll;
  + let ScrollWrapper: React.ElementType;
  + let scrollWrapperProps = {};
  +
  + if (mode === 'fixed') {
  + ScrollWrapper = 'div';
  + } else {
  + ScrollWrapper = HorizontalScroll;
  + scrollWrapperProps = {
  + showArrows,
  + getScrollToLeft,
  + getScrollToRight,
  + scrollAnimationDuration,
  + };
  + }
  return (
  <div
  {...restProps}
  vkuiClass={classNames(getClassName('SubnavigationBar', platform), `SubnavigationBar--${mode}`)}
  >
  - <ScrollWrapper vkuiClass="SubnavigationBar__in">
  + <ScrollWrapper vkuiClass="SubnavigationBar__in" {...scrollWrapperProps}>
  <div vkuiClass="SubnavigationBar__scrollIn">
  {children}
  </div>
  @@ -32,7 +54,3 @@ export const SubnavigationBar: React.FC<SubnavigationBarProps> = (props: Subnavi
  </div>
  );
  };
  -
  -SubnavigationBar.defaultProps = {
  - mode: 'overflow',
  -};
  