{"size": 1291, "ext": "js", "max_stars_repo_path": "dist/components/tabNavigation/TabBar/hooks/useTabBarPositionValues.js", "max_stars_repo_name": "baltazar-gr/fractal-navigation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/components/tabNavigation/TabBar/hooks/useTabBarPositionValues.js", "max_issues_repo_name": "baltazar-gr/fractal-navigation", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/components/tabNavigation/TabBar/hooks/useTabBarPositionValues.js", "max_forks_repo_name": "baltazar-gr/fractal-navigation", "max_forks_repo_forks_event_min_datetime": "2021-03-16T22:35:09.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-16T22:35:09.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 51.64, "max_line_length": 99, "alphanum_fraction": 0.6738962045}
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { getValueForTabBarPosition } from '../util/getValueForTabBarPosition';
import { useMemo } from 'react';
import { useTabBarSafeAreaForPosition } from './useTabBarSafeAreaForPosition';
export function useTabBarPositionValues(tabBarPosition) {
    var safeArea = useTabBarSafeAreaForPosition(tabBarPosition);
    var width = getValueForTabBarPosition(tabBarPosition, '100%', safeArea, safeArea);
    var height = getValueForTabBarPosition(tabBarPosition, safeArea, '100%', '100%');
    var flexDirection = getValueForTabBarPosition(tabBarPosition, 'row', 'column', 'column');
    var side = getValueForTabBarPosition(tabBarPosition, { bottom: 0 }, { left: 0 }, { right: 0 });
    return useMemo(function () {
        return __assign({ width: width, height: height, flexDirection: flexDirection }, side);
    }, [width, height, flexDirection, side]);
}
//# sourceMappingURL=useTabBarPositionValues.js.map