---
import styles from "../styles/Button.module.css"

export interface Props {
	href: string
	newTab?: boolean
}

const { href, newTab } = Astro.props
---

<a
	href={href}
	class={styles.button}
	target={newTab ? "_blank" : ""}
	rel={newTab ? "noreferrer" : ""}
>
	<slot />
</a>
