'use client' import { ChevronRight } from 'lucide-react' import { useTheme } from 'next-themes' import * as React from 'react' import ReactTooltip from 'react-tooltip' interface Props { title?: string tooltip?: string icon?: string | React.ReactNode iconSize?: 'sm' | 'lg' children?: React.ReactNode background?: boolean hasLightIcon?: boolean showLink?: boolean hideArrow?: boolean } export const IconPanel = ({ title, tooltip, icon, iconSize = 'sm', children, background = true, hasLightIcon, showLink = false, hideArrow = false, }: Props) => { const { theme } = useTheme() const IconContainer: React.FC = (props) => { return (
{props.children}
) } return ( <>
{typeof icon === 'string' ? ( { ) : ( {icon} )}
{title &&
{title}
} {!hideArrow && (
)}
{children && ( {children} )} {showLink && Learn more}
{tooltip && ( )} ) }