import { useCourse } from '@components/Contexts/CourseContext' import { Book, ChevronRight, School, User, Users } from 'lucide-react' import Link from 'next/link' import React, { use, useEffect } from 'react' type BreadCrumbsProps = { type: 'courses' | 'user' | 'users' | 'org' | 'orgusers' last_breadcrumb?: string } function BreadCrumbs(props: BreadCrumbsProps) { const course = useCourse() as any; return (
{props.type == 'courses' ?
Courses
: ''} {props.type == 'user' ?
Account Settings
: ''} {props.type == 'orgusers' ?
Organization users
: ''} {props.type == 'org' ?
Organization Settings
: ''}
{props.last_breadcrumb ? : ''}
{props.last_breadcrumb}
) } export default BreadCrumbs