"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useThemeColors = void 0;
var _react = require("react");
var _useColorScheme = require("./use-color-scheme");
var _theme = require("../constants/theme");
/**
 * Reusable hook to get theme colors based on current color scheme
 * Returns the Colors object for the current theme (light or dark)
 * 
 * @returns Colors object for the current color scheme
 * 
 * @example
 * ```tsx
 * const colors = useThemeColors();
 * <View style={{ backgroundColor: colors.background }}>
 *   <Text style={{ color: colors.text }}>Hello</Text>
 * </View>
 * ```
 */
const useThemeColors = () => {
  const colorScheme = (0, _useColorScheme.useColorScheme)();
  return (0, _react.useMemo)(() => {
    return _theme.Colors[colorScheme ?? 'light'];
  }, [colorScheme]);
};
exports.useThemeColors = useThemeColors;
//# sourceMappingURL=useThemeColors.js.map