({ title, description, visibleButton = true, href = '' })
| 4 | import React from 'react' |
| 5 | |
| 6 | const Title = ({ title, description, visibleButton = true, href = '' }) => { |
| 7 | |
| 8 | return ( |
| 9 | <div className='flex flex-col items-center'> |
| 10 | <h2 className='text-2xl font-semibold text-slate-800'>{title}</h2> |
| 11 | <Link href={href} className='flex items-center gap-5 text-sm text-slate-600 mt-2'> |
| 12 | <p className='max-w-lg text-center'>{description}</p> |
| 13 | {visibleButton && <button className='text-green-500 flex items-center gap-1'>View more <ArrowRight size={14} /></button>} |
| 14 | </Link> |
| 15 | </div> |
| 16 | ) |
| 17 | } |
| 18 | |
| 19 | export default Title |
nothing calls this directly
no outgoing calls
no test coverage detected