import { Divider, Group, Loader, Text, UnstyledButton } from "@mantine/core";
import { CaretRightIcon, Icon } from "@phosphor-icons/react";
interface ListButtonProps {
label: string;
Icon: Icon;
onClick: () => void;
loading?: boolean;
}
const ListButton = ({ label, onClick, Icon, loading }: ListButtonProps) => {
return (
<>
{label}
{loading ? (
) : (
)}
>
);
};
export default ListButton;