mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 19:16:11 +00:00
created secondary button component
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
function ButtonMain(props) {
|
||||
const { text, animationName, link } = props;
|
||||
return (
|
||||
<a
|
||||
href="#"
|
||||
className={
|
||||
animationName === "move-in--bottom"
|
||||
? "btn btn--white move-in--bottom"
|
||||
: "btn btn--white"
|
||||
}
|
||||
>
|
||||
{text}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
export default ButtonMain;
|
||||
Reference in New Issue
Block a user