Function
WidgetTitle
({
children,
className,
icon: Icon,
}: WidgetTitleProps)
Source from the content-addressed store, hash-verified
| 24 | icon?: LucideIcon; |
| 25 | } |
| 26 | export function WidgetTitle({ |
| 27 | children, |
| 28 | className, |
| 29 | icon: Icon, |
| 30 | }: WidgetTitleProps) { |
| 31 | return ( |
| 32 | <div |
| 33 | className={cn( |
| 34 | 'relative flex items-center gap-4', |
| 35 | className, |
| 36 | !!Icon && 'pl-12', |
| 37 | )} |
| 38 | > |
| 39 | {Icon && ( |
| 40 | <div className="absolute left-0 rounded-lg bg-def-200 p-2"> |
| 41 | <Icon size={18} /> |
| 42 | </div> |
| 43 | )} |
| 44 | <div className="title">{children}</div> |
| 45 | </div> |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | export interface WidgetBodyProps { |
| 50 | children: React.ReactNode; |
Callers
nothing calls this directly
Tested by
no test coverage detected