@grafana/ui
Version:
Grafana Components Library
24 lines (21 loc) • 587 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { css } from '@emotion/css';
import { useStyles2 } from '../../../themes/ThemeContext.mjs';
;
const TimeZoneTitle = ({ title }) => {
const styles = useStyles2(getStyles);
if (!title) {
return null;
}
return /* @__PURE__ */ jsx("span", { className: styles.title, children: title });
};
const getStyles = (theme) => {
return {
title: css({
fontWeight: theme.typography.fontWeightRegular,
textOverflow: "ellipsis"
})
};
};
export { TimeZoneTitle };
//# sourceMappingURL=TimeZoneTitle.mjs.map