import { jsx as _jsx } from "react/jsx-runtime";
import { Component } from 'react';
import Prism from 'prismjs';
export default class PrismCode extends Component {
    componentDidMount() {
        Prism.highlightAll();
    }
    componentDidUpdate() {
        Prism.highlightAll();
    }
    render() {
        return (_jsx("pre", { style: this.props.style, children: _jsx("code", { "data-testid": "prism-code", className: `language-${this.props.language || 'javascript'}`, children: this.props.code }) }));
    }
}
//# sourceMappingURL=PrismCode.js.map