import React from "react"; import learnhouseLogo from "public/learnhouse_logo.png"; import Link from "next/link"; import Image from "next/image"; import { getBackendUrl, getUriWithOrg } from "@services/config/config"; import { getOrganizationContextInfo, getOrganizationContextInfoNoAsync } from "@services/organizations/orgs"; import ClientComponentSkeleton from "@components/UI/Utils/ClientComp"; import { HeaderProfileBox } from "@components/Security/HeaderProfileBox"; export const Menu = async (props: any) => { const orgslug = props.orgslug; const org = await getOrganizationContextInfo(orgslug, { revalidate: 1800, tags: ['organizations'] }); console.log(org); return ( <>
{org?.logo ? ( Learnhouse ) : ( )}
); }; const LinkItem = (props: any, orgslug: any) => { const link = props.link; return (
  • {props.type == 'courses' && <> Courses } {props.type == 'collections' && <> Collections } {props.type == 'trail' && <> Trail }
  • ) } const LearnHouseLogo = () => { return ( ) }