Files
portabase/src/components/wrappers/dashboard/projects/ButtonDeleteProject/ButtonDeleteProject.tsx
T

33 lines
832 B
TypeScript
Raw Normal View History

2024-12-01 11:11:27 +01:00
"use client"
2024-12-16 20:01:30 +01:00
2024-12-01 11:11:27 +01:00
import {Trash2} from "lucide-react";
2024-12-16 20:01:30 +01:00
import {ButtonWithConfirm} from "@/components/wrappers/common/button/button-with-confirm";
2024-12-01 11:11:27 +01:00
export type ButtonDeleteProjectProps = {
text? : string
}
export const ButtonDeleteProject = (props: ButtonDeleteProjectProps) => {
// const mutation = useMutation({
// mutationFn: () => deleteUserAction(""),
// onSuccess: async () => {
// await signOutAction();
// },
// })
return (
<ButtonWithConfirm
text={props.text ? props.text : ""}
onClick={() => {
// mutation.mutate()
console.log("ok")
}}
variant={"destructive"}
// isPending={mutation.isPending}
className="gap-2"
icon={<Trash2/>}
/>
)
}