diff --git a/components/notes/CreateWorksheetForm/UploadNotesPage/UploadNotesStep.tsx b/components/notes/CreateWorksheetForm/UploadNotesPage/UploadNotesStep.tsx index 19b08ab..5d27117 100644 --- a/components/notes/CreateWorksheetForm/UploadNotesPage/UploadNotesStep.tsx +++ b/components/notes/CreateWorksheetForm/UploadNotesPage/UploadNotesStep.tsx @@ -1,14 +1,67 @@ +import React, { useState } from 'react'; import NotesUploadBox from './NotesUploadBox'; +import YoutubeLink from './YoutubeLink'; +import TextPaste from './TextPaste'; +import { Button } from "@/components/ui/button"; +import IconUpload from '@/components/ui/icons/IconUpload'; +import IconPaste from '@/components/ui/icons/IconPaste'; +import IconYoutube from '@/components/ui/icons/IconYoutube'; -type UploadNotesStep = { + +interface UploadNotesStepProps { next: () => void; -}; +} + +const UploadNotesStep: React.FC = ({ next }) => { + const [activeTab, setActiveTab] = useState('upload'); + + const handleUploadSuccess = () => { + next(); + }; + + const handleLinkSubmit = () => { + next(); + }; + + const handleTextSubmit = () => { + next(); + }; -const UploadNotesStep: React.FC = ({ next }) => { return ( -
-

Upload Resource to transform

- +
+
+
+ {activeTab === 'upload' && } + {activeTab === 'youtube' && } + {activeTab === 'text' && } +
+
+ + + +
+
); }; diff --git a/components/ui/icons/IconPaste.tsx b/components/ui/icons/IconPaste.tsx new file mode 100644 index 0000000..5e04d24 --- /dev/null +++ b/components/ui/icons/IconPaste.tsx @@ -0,0 +1,18 @@ +// icon:paste | Fontawesome https://fontawesome.com/ | Fontawesome +import * as React from "react"; + +function IconPaste(props: React.SVGProps) { + return ( + + + + ); +} + +export default IconPaste; diff --git a/components/ui/icons/IconUpload.tsx b/components/ui/icons/IconUpload.tsx new file mode 100644 index 0000000..da400f0 --- /dev/null +++ b/components/ui/icons/IconUpload.tsx @@ -0,0 +1,19 @@ +// icon:upload | Bootstrap https://icons.getbootstrap.com/ | Bootstrap +import * as React from "react"; + +function IconUpload(props: React.SVGProps) { + return ( + + + + + ); +} + +export default IconUpload; diff --git a/components/ui/icons/IconYoutube.tsx b/components/ui/icons/IconYoutube.tsx new file mode 100644 index 0000000..98fe774 --- /dev/null +++ b/components/ui/icons/IconYoutube.tsx @@ -0,0 +1,18 @@ +// icon:youtube | Ant Design Icons https://ant.design/components/icon/ | Ant Design +import * as React from "react"; + +function IconYoutube(props: React.SVGProps) { + return ( + + + + ); +} + +export default IconYoutube;