Skip to content

Commit

Permalink
feat: add stack icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed Jan 22, 2024
1 parent b1501b3 commit 327ee17
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions components/StackIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Url } from 'next/dist/shared/lib/router/router'
import Link from 'next/link'

type Props = {
href: Url
src: string | undefined
alt: string
className?: string
}

const StackIcon = (props: Props) => {
return (
<Link href={ props.href } target='_blank'>
<img src={ props.src } alt={ props.alt } className={`${ props.className } w-[50px] md:w-[60px] lg:w-[70px] `} />
</Link>
)
}

export default StackIcon

0 comments on commit 327ee17

Please sign in to comment.