Update | Project Ready
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
import React from 'react'
|
||||
|
||||
export const Tab = ( { name, className, active, onTabClick } ) => {
|
||||
return (
|
||||
<button className={ `${ className } ${ active ? "border-b-2 border-b-[#0F75BC]" : "" }` } onClick={ () => onTabClick( name ) }>
|
||||
{ name }
|
||||
</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user