| 1 | interface MoreHelpRowProps { |
| 2 | title: string; |
| 3 | description: string; |
| 4 | onClick?: () => void; |
| 5 | href?: string; |
| 6 | Icon: any; |
| 7 | } |
| 8 | |
| 9 | function MoreHelpRow({ title, description, onClick, Icon }: MoreHelpRowProps) { |
| 10 | return ( |
| 11 | <div |
| 12 | className="hover:bg-lightgray/30 flex cursor-pointer items-center justify-between gap-2 rounded px-4 py-2" |
| 13 | onClick={onClick} |
| 14 | > |
| 15 | <div className="flex w-4/5 flex-col justify-center"> |
| 16 | <h3 className="my-0 text-sm">{title}</h3> |
| 17 | <span className="text-lightgray py-1 text-xs">{description}</span> |
| 18 | </div> |
| 19 | |
| 20 | <div className="text-lightgray flex h-5 w-1/5 w-5 cursor-pointer justify-end"> |
| 21 | <Icon /> |
| 22 | </div> |
| 23 | </div> |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | export default MoreHelpRow; |