Feat: wisp server switcher

This commit is contained in:
MotorTruck1221
2025-05-03 18:33:50 -06:00
parent ab6f588fb1
commit a2c497363e
7 changed files with 102 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
---
import { Icon } from 'astro-icon/components';
interface Props {
id: string;
text: string;
icon?: string
}
const { id, text, icon } = Astro.props;
---
<button id={id} class="bg-(--primary) hover:bg-(--primary)/90 cursor-pointer text-(--primary-foreground) inline-flex items-center jusitfy-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors h-10 px-4 py-2">
{icon ? <Icon name={icon} class="text-(--primary-foreground) h-5 w-5 mr-2" /> : null}
{text}
</button>