Extended loading

This commit is contained in:
James Thomas
2025-04-02 17:58:40 -04:00
committed by Dan Ditomaso
parent 4de88c3add
commit 1a6e99971a
2 changed files with 57 additions and 40 deletions
@@ -7,6 +7,7 @@ export interface SidebarButtonProps {
Icon?: LucideIcon;
element?;
onClick?: () => void;
disabled?: boolean;
}
export const SidebarButton = ({
@@ -15,12 +16,14 @@ export const SidebarButton = ({
Icon,
element,
onClick,
disabled = false,
}: SidebarButtonProps) => (
<Button
onClick={onClick}
variant={active ? "subtle" : "ghost"}
size="sm"
className="flex gap-2 w-full"
disabled={disabled}
>
{Icon && <Icon size={16} />}
{element && element}