13 lines
341 B
TypeScript
13 lines
341 B
TypeScript
const AnimationButton = ({text,icon,link,withAnimation= true}:AnimationButtonProps) => {
|
|
|
|
return (
|
|
<div className='button'>
|
|
<Link to={link}><p>{text}</p></Link>
|
|
{
|
|
withAnimation ? <span>{icon}</span> : <span style={{display:"none"}}>{icon}</span>
|
|
}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default AnimationButton |