import React, { type FC } from 'react' import cn from '@/utils/classnames' import Tooltip from '@/app/components/base/tooltip' import { Theme } from '@/types/app' type IconWithTooltipProps = { className?: string popupContent?: string theme: Theme BadgeIconLight: React.ElementType BadgeIconDark: React.ElementType } const IconWithTooltip: FC = ({ className, theme, popupContent, BadgeIconLight, BadgeIconDark, }) => { const isDark = theme === Theme.dark const iconClassName = cn('h-5 w-5', className) const Icon = isDark ? BadgeIconDark : BadgeIconLight return (
) } export default React.memo(IconWithTooltip)