new structure
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'use client'
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import "./AlertBox.css";
|
||||
@@ -9,7 +9,11 @@ interface AlertBoxProps {
|
||||
duration?: number;
|
||||
}
|
||||
|
||||
export default function AlertBox({ message, type, duration = 6000 }: AlertBoxProps) {
|
||||
export default function AlertBox({
|
||||
message,
|
||||
type,
|
||||
duration = 6000,
|
||||
}: AlertBoxProps) {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [text, setText] = useState("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user