import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { CheckmarkIcon } from '@redocly/theme/icons/CheckmarkIcon/CheckmarkIcon';
import { CurlIcon } from '../../icons/CurlIcon/index.js';
import { CSharpIcon } from '../../icons/CSharpIcon/index.js';
import { NodeJSIcon } from '../../icons/NodeJSIcon/index.js';
import { JavaScriptIcon } from '../../icons/JavaScriptIcon/index.js';
import { PythonIcon } from '../../icons/PythonIcon/index.js';
import { RIcon } from '../../icons/RIcon/index.js';
import { RubyIcon } from '../../icons/RubyIcon/index.js';
import { PHPIcon } from '../../icons/PHPIcon/index.js';
import { GOIcon } from '../../icons/GOIcon/index.js';
import { JavaIcon } from '../../icons/JavaIcon/index.js';
import { PayloadIcon } from '../../icons/PayloadIcon/index.js';
import { LanguageIcon, LanguageTitle, LanguageTitleContainer } from './styled.js';
const iconMap = {
    Payload: _jsx(PayloadIcon, {}),
    curl: _jsx(CurlIcon, {}),
    'C#': _jsx(CSharpIcon, {}),
    'C#+Newtonsoft': _jsx(CSharpIcon, {}),
    'Node.js': _jsx(NodeJSIcon, {}),
    JavaScript: _jsx(JavaScriptIcon, {}),
    Python: _jsx(PythonIcon, {}),
    R: _jsx(RIcon, {}),
    Ruby: _jsx(RubyIcon, {}),
    PHP: _jsx(PHPIcon, {}),
    Go: _jsx(GOIcon, {}),
    Java: _jsx(JavaIcon, {}),
    'Java8+Apache': _jsx(JavaIcon, {}),
};
export const LanguageItem = ({ item, active, withCheckmark, withIcon }) => {
    return (_jsxs(_Fragment, { children: [_jsxs(LanguageTitleContainer, { children: [withIcon && _jsx(LanguageIcon, { children: iconMap[item.lang] }), _jsx(LanguageTitle, { active: active, title: item.title, children: item.title })] }), withCheckmark && active && _jsx(CheckmarkIcon, {})] }));
};
//# sourceMappingURL=LanguageItem.js.map