mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
33 lines
715 B
TypeScript
33 lines
715 B
TypeScript
import { useOrg } from '@components/Contexts/OrgContext'
|
|
import { getActivityMediaDirectory } from '@services/media/media'
|
|
import React from 'react'
|
|
|
|
function DocumentPdfActivity({
|
|
activity,
|
|
course,
|
|
}: {
|
|
activity: any
|
|
course: any
|
|
}) {
|
|
const org = useOrg() as any
|
|
|
|
React.useEffect(() => {
|
|
}, [activity, org])
|
|
|
|
return (
|
|
<div className="m-8 bg-zinc-900 rounded-md mt-14">
|
|
<iframe
|
|
className="rounded-lg w-full h-[900px]"
|
|
src={getActivityMediaDirectory(
|
|
org?.org_uuid,
|
|
course?.course_uuid,
|
|
activity.activity_uuid,
|
|
activity.content.filename,
|
|
'documentpdf'
|
|
)}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default DocumentPdfActivity
|