2025-12-22 02:36:48 +01:00
|
|
|
<script lang="ts">
|
2026-03-09 11:18:22 +01:00
|
|
|
import IssueCertificateModal from '$features/course/components/ceritficate/issue-certificate-modal.svelte';
|
2025-12-22 02:36:48 +01:00
|
|
|
import { RoleBasedSecurity } from '$features/ui';
|
2026-03-09 11:18:22 +01:00
|
|
|
import Design from '$features/course/components/ceritficate/design.svelte';
|
|
|
|
|
import StudentCertificate from '$features/course/components/ceritficate/student-certificate/index.svelte';
|
2025-12-22 02:36:48 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<IssueCertificateModal />
|
|
|
|
|
|
|
|
|
|
<RoleBasedSecurity allowedRoles={[1, 2]}>
|
|
|
|
|
<Design />
|
|
|
|
|
</RoleBasedSecurity>
|
|
|
|
|
<RoleBasedSecurity onlyStudent allowedRoles={[3]}>
|
|
|
|
|
<StudentCertificate />
|
|
|
|
|
</RoleBasedSecurity>
|