import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from '@/shadcn/ui/dialog' import { teachers } from '@/shared/data/teachers' import { Lesson } from '@/shared/model/lesson' import Link from 'next/link' import { BiLink } from 'react-icons/bi' export function ResourcesDialog({ open, onClose, teacherName, resources, homework }: { open: boolean onClose: () => any teacherName?: string resources: Lesson['resources'] homework?: string }) { const teacherPronouns = teachers.find(t => t.name === teacherName)?.pronouns return ( ) } function Resource({ resource }: { resource: Lesson['resources'][number] }) { if(resource.type === 'link') { return (