import React, { FC } from 'react';
import { ScaleSizeContext } from '../Context';
import { ScaleSizeProviderProps } from './types';

const ScaleSizeProvider: FC<ScaleSizeProviderProps> = ({
  scaleSizeMaxRate,
  children,
}) => {
  return (
    <ScaleSizeContext.Provider value={{ scaleSizeMaxRate }}>
      {children}
    </ScaleSizeContext.Provider>
  );
};

export default ScaleSizeProvider;
