The crawler subdirectory was the only active project. Moving it to the repo root simplifies paths and removes the unnecessary nesting. The vqa/ and immoweb/ directories were legacy/unused and have been removed. Updated .drone.yml, .gitignore, .claude/ docs, and skills to reflect the new flat structure.
26 lines
1,021 B
TypeScript
26 lines
1,021 B
TypeScript
import { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "./ui/alert-dialog";
|
|
|
|
export default function AlertError(
|
|
props: {
|
|
message: string | null;
|
|
open: boolean;
|
|
setIsOpen: (isOpen: boolean) => void;
|
|
}
|
|
) {
|
|
return (
|
|
<AlertDialog open={props.open} onOpenChange={props.setIsOpen}>
|
|
{/* <AlertDialogTrigger>Open</AlertDialogTrigger> */}
|
|
<AlertDialogContent>
|
|
<AlertDialogHeader>
|
|
<AlertDialogTitle>Error</AlertDialogTitle>
|
|
<AlertDialogDescription>
|
|
{props.message}
|
|
</AlertDialogDescription>
|
|
</AlertDialogHeader>
|
|
<AlertDialogFooter>
|
|
<AlertDialogAction onClick={() => props.setIsOpen(false)}>Close</AlertDialogAction>
|
|
</AlertDialogFooter>
|
|
</AlertDialogContent>
|
|
</AlertDialog>
|
|
)
|
|
}
|