import clsx from 'clsx'; import { PropsWithChildren } from 'react'; import { AlertCircle } from 'lucide-react'; import { Icon } from '@@/Icon'; type Color = 'orange' | 'blue'; export interface Props { color?: Color; } export function TextTip({ color = 'orange', children, }: PropsWithChildren) { let iconClass: string; switch (color) { case 'blue': iconClass = 'icon-primary'; break; case 'orange': iconClass = 'icon-warning'; break; default: iconClass = 'icon-warning'; } return (

{children}

); }