bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/waiting-users/waiting-users-graphql/service.ts
2024-04-25 14:47:54 -03:00

22 lines
549 B
TypeScript

export const privateMessageVisible = (id: string) => {
const privateInputSpace = document.getElementById(id);
if (privateInputSpace) {
if (privateInputSpace.style.display === 'block') {
privateInputSpace.style.display = 'none';
} else {
privateInputSpace.style.display = 'block';
}
}
};
export const getNameInitials = (name: string) => {
const nameInitials = name.slice(0, 2);
return nameInitials.replace(/^\w/, (c: string) => c.toUpperCase());
};
export default {
privateMessageVisible,
getNameInitials,
};