/* index.tsx generated by @compiled/babel-plugin v0.40.0 */
import _extends from "@babel/runtime/helpers/extends";
import "./index.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
import { BaseTextElement } from '../common';
const SNIPPET_DEFAULT_MAX_LINES = 3;
const snippetBaseStyle = null;
const SnippetElement = props => {
  const {
    content: overrideContent,
    maxLines = SNIPPET_DEFAULT_MAX_LINES,
    className,
    ...restOfProps
  } = props !== null && props !== void 0 ? props : {};
  const context = useFlexibleUiContext();
  return /*#__PURE__*/React.createElement(BaseTextElement, _extends({
    content: overrideContent !== null && overrideContent !== void 0 ? overrideContent : context === null || context === void 0 ? void 0 : context.snippet,
    maxLines: maxLines,
    // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
    className: ax(["_syazi7uo _1ul9idpf _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className])
  }, restOfProps));
};
export default SnippetElement;