import Tabs from '@/components/tabs'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog'; import { ScrollArea } from '@/components/ui/scroll-area'; import { TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { useState } from 'react'; import ResourceForm from './forms/resource-form'; import ResourceList from './resource-list'; interface Props { title: string; handler: React.ReactNode; lesson: SectionLesson; resource?: LessonResource; } const ResourceModal = ({ title, handler, lesson, resource }: Props) => { const [open, setOpen] = useState(false); const [isSubmit, setIsSubmit] = useState(false); return ( {handler} {title} Resource List Add Resource ); }; export default ResourceModal;