feat: rename button components to include button in name for consistency

This commit is contained in:
2026-02-15 22:05:36 -06:00
parent 8a649b7647
commit 5271be52a2
7 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
---
import Icon from '@components/ui/icons/icon.astro';
interface Props {
noArrow?: boolean;
}
const { noArrow } = Astro.props;
---
<button
class="button-base button-bg-blue group inline-flex rounded-lg gap-x-2"
id="back-button"
data-astro-prefetch
>
<div class="button-text-title flex relative items-center text-center">
{noArrow ? null : <Icon name="arrowLeft" />}
<span class="ml-2">
Go Back
</span>
</div>
</button>
<script>
document.getElementById('back-button')?.addEventListener('click', () => {
window.history.back();
});
</script>