-import { getRoleLabelPill } from "@utils/app";
import classNames from "classnames";
import { Component } from "inferno";
import { I18NextService } from "../../services";
classNames?: string;
}
+export function getRoleLabelPill({
+ label,
+ tooltip,
+ classes,
+ shrink = true,
+}: {
+ label: string;
+ tooltip: string;
+ classes?: string;
+ shrink?: boolean;
+}) {
+ return (
+ <span
+ className={`badge ${classes ?? "text-bg-light"}`}
+ aria-label={tooltip}
+ data-tippy-content={tooltip}
+ >
+ {shrink ? label[0].toUpperCase() : label}
+ </span>
+ );
+}
+
export class UserBadges extends Component<UserBadgesProps> {
render() {
return (
+++ /dev/null
-export default function getRoleLabelPill({
- label,
- tooltip,
- classes,
- shrink = true,
-}: {
- label: string;
- tooltip: string;
- classes?: string;
- shrink?: boolean;
-}) {
- return (
- <span
- className={`badge ${classes ?? "text-bg-light"}`}
- aria-label={tooltip}
- data-tippy-content={tooltip}
- >
- {shrink ? label[0].toUpperCase() : label}
- </span>
- );
-}
import getDepthFromComment from "./get-depth-from-comment";
import getIdFromProps from "./get-id-from-props";
import getRecipientIdFromProps from "./get-recipient-id-from-props";
-import getRoleLabelPill from "./get-role-label-pill";
import getUpdatedSearchId from "./get-updated-search-id";
import initializeSite from "./initialize-site";
import insertCommentIntoTree from "./insert-comment-into-tree";
getDepthFromComment,
getIdFromProps,
getRecipientIdFromProps,
- getRoleLabelPill,
getUpdatedSearchId,
initializeSite,
insertCommentIntoTree,