import {
    AlertDialogAction,
    AlertDialogCancel,
    AlertDialogContent,
    AlertDialogDescription,
    AlertDialogFooter,
    AlertDialogHeader,
    AlertDialogTitle,
} from "@/components/ui/alert-dialog"

const DialogContentCommon = (props: any) => {
    return (
        <AlertDialogContent className="w-[320px] md:w-auto">
            <AlertDialogHeader>
                <AlertDialogTitle >{props?.title}</AlertDialogTitle>
                <AlertDialogDescription>
                    {props?.des}
                </AlertDialogDescription>
            </AlertDialogHeader>
            <AlertDialogFooter>
                <AlertDialogCancel>Cancel</AlertDialogCancel>
                <AlertDialogAction onClick={props.logout} className={props?.class}>{props?.submitText}</AlertDialogAction>
            </AlertDialogFooter>
        </AlertDialogContent>
    )
}

export default DialogContentCommon