diff --git a/apps/meteor/client/components/InfoPanel/InfoPanelTitle.tsx b/apps/meteor/client/components/InfoPanel/InfoPanelTitle.tsx index ce23118f3b81..9496c287fc76 100644 --- a/apps/meteor/client/components/InfoPanel/InfoPanelTitle.tsx +++ b/apps/meteor/client/components/InfoPanel/InfoPanelTitle.tsx @@ -1,5 +1,5 @@ -import { Box } from '@rocket.chat/fuselage'; -// import type { Keys as IconName } from '@rocket.chat/icons'; +import { Box, Icon } from '@rocket.chat/fuselage'; +import type { Keys as IconName } from '@rocket.chat/icons'; import type { FC, ReactNode } from 'react'; import React from 'react'; @@ -8,11 +8,11 @@ type InfoPanelTitleProps = { icon?: ReactNode; }; -// const isValidIcon = (icon: ReactNode): icon is IconName => typeof icon === 'string'; +const isValidIcon = (icon: ReactNode): icon is IconName => typeof icon === 'string'; -const InfoPanelTitle: FC = ({ title }) => ( +const InfoPanelTitle: FC = ({ title, icon }) => ( - {/* {isValidIcon(icon) ? : icon} */} + {isValidIcon(icon) ? : icon} {title}