diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx index 55b36ce..1228004 100644 --- a/src/components/ui/alert.tsx +++ b/src/components/ui/alert.tsx @@ -1,42 +1,14 @@ -import { component$, useStore } from "@builder.io/qwik"; +import { component$ } from "@builder.io/qwik"; type Props = { text: string; status: "alert-info" | "alert-success" | "alert-warning" | "alert-error"; - onClose?: () => void; }; - export const Alert = component$((props: Props) => { - const { text, status = "alert-info", onClose } = props; - const store = useStore({ isVisible: true }); - - const handleClose = () => { - store.isVisible = false; - if (onClose) { - onClose(); - } - }; - - if (!store.isVisible) return null; - + const { text, status = "alert-info" } = props; return ( -