var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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 { jsx as _jsx } from "react/jsx-runtime";
import styled from 'styled-components';
import { StyledFont14 } from 'ui/common';
var StyledContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  background-color: ", ";\n  padding: 10px;\n"], ["\n  background-color: ", ";\n  padding: 10px;\n"])), function (_a) {
    var theme = _a.theme;
    return theme.colors.background04;
});
var StyledCode = styled(StyledFont14)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  align-items: left;\n  background-color: ", ";\n  padding: 10px;\n"], ["\n  align-items: left;\n  background-color: ", ";\n  padding: 10px;\n"])), function (_a) {
    var theme = _a.theme;
    return theme.colors.background05;
});
var Code = function (_a) {
    var className = _a.className, code = _a.code;
    return (_jsx(StyledContainer, { children: _jsx(StyledCode, __assign({ wordbreak: "break-all" }, { children: code })) }));
};
export default Code;
var templateObject_1, templateObject_2;
