"use client"; import ConfirmDeleteDialog from "@app/components/ConfirmDeleteDialog"; import { Button } from "@app/components/ui/button"; import { useOrgContext } from "@app/hooks/useOrgContext"; import { userOrgUserContext } from "@app/hooks/useOrgUserContext"; import { useState } from "react"; export default function GeneralPage() { const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false); const { orgUser } = userOrgUserContext(); const { org } = useOrgContext(); async function deleteOrg() { console.log("not implemented"); } return ( <> { setIsDeleteModalOpen(val); }} dialog={

Are you sure you want to delete the organization{" "} {org?.org.name}?

This action is irreversible and will delete all associated data.

To confirm, type the name of the organization below.

} buttonText="Confirm delete organization" onConfirm={deleteOrg} string={org?.org.name || ""} title="Delete organization" /> {orgUser.isOwner ? ( ) : (

Nothing to see here

)} ); }