MCPcopy Create free account
hub / github.com/GreatStackDev/gocart / Title

Function Title

components/Title.jsx:6–17  ·  view source on GitHub ↗
({ title, description, visibleButton = true, href = '' })

Source from the content-addressed store, hash-verified

4import React from 'react'
5
6const 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
19export default Title

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected