/* custom-title.tsx generated by @compiled/babel-plugin v0.38.1 */
import "./custom-title.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { forwardRef } from 'react';
import { useHasCustomTheme } from './themed/has-custom-theme-context';
const styles = {
  root: "_1reo15vq _18m915vq _11c82smr _o5721q9c _p12fuuw1 _1bto1l2s _bozg1b66 _y4tiu2gc _1e0cglyw _10y41txw",
  subtleText: "_syaz1gjq"
};
/**
 * __Custom title__
 *
 * A custom site title to be displayed in the top navigation, to the right of the logo.
 * It is hidden on smaller viewports.
 */
export const CustomTitle = /*#__PURE__*/forwardRef(function CustomTitle({
  children,
  testId
}, ref) {
  const hasCustomTheme = useHasCustomTheme();
  return /*#__PURE__*/React.createElement("div", {
    ref: ref,
    "data-testid": testId,
    className: ax([styles.root, !hasCustomTheme && styles.subtleText])
  }, children);
});