link-stack/packages/bridge-ui/components/DeleteDialog.tsx

34 lines
678 B
TypeScript
Raw Normal View History

2024-03-16 19:39:20 +01:00
"use client";
import { FC } from "react";
import { Grid, Box } from "@mui/material";
import { useRouter } from "next/navigation";
2024-04-30 11:39:16 +02:00
import { typography } from "@/styles/theme";
2024-03-16 19:39:20 +01:00
interface DeleteDialogProps {
title: string;
entity: string;
children: any;
}
2024-04-30 11:39:16 +02:00
export const DeleteDialog: FC<DeleteDialogProps> = ({
title,
entity,
children,
}) => {
2024-03-16 19:39:20 +01:00
const router = useRouter();
const { h3 } = typography;
return (
<Box sx={{ height: "100vh", backgroundColor: "#ddd", p: 3 }}>
<Grid container direction="column">
<Grid item>
<Box sx={h3}>{title}</Box>
</Grid>
2024-04-30 11:39:16 +02:00
<Grid item>{children}</Grid>
2024-03-16 19:39:20 +01:00
</Grid>
</Box>
);
};