"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTypographyColor = void 0;
const react_1 = require("react");
const useTheme_1 = require("../../../theme/hooks/useTheme");
const useTypographyColor = ({ color, colorIntensity = '800', }) => {
    const theme = (0, useTheme_1.useTheme)();
    return (0, react_1.useMemo)(() => {
        if (color) {
            switch (color) {
                case 'text':
                    return theme.palette.text.primary;
                case 'textSecondary':
                    return theme.palette.text.secondary;
                case 'secondary':
                    return theme.palette.secondary[800];
                default:
                    return theme.palette[color]?.[colorIntensity] || color;
            }
        }
        return undefined;
    }, [color, colorIntensity, theme]);
};
exports.useTypographyColor = useTypographyColor;
