import React from "react";
import { useOrganization } from "../../hooks/useOrganization";
import { OrgDetailsSkeleton } from "./OrganizationSkeleton";
const VieworgDataanization = ({ orgId }) => {
const { data, isLoading, isError, error } = useOrganization(orgId);
if (isLoading) return ;
if (isError) return
{error.message}
;
return (
{/* Header */}

{" "}
{data?.name}
{data?.isActive ? "Active" : "In-Active"}{" "}
{" "}
Organization Info
{/* Contact Info */}
{data?.contactPerson}
{data?.contactNumber}
{data?.email}
{data?.sprid}
{data?.activeEmployeeCount}
{data?.address}
{" "}
Projects And Services
);
};
export default VieworgDataanization;