fix(ts): fix interfaces for type safety

This commit is contained in:
shafin-r
2025-07-27 13:41:02 +06:00
parent 3ef526ec1a
commit e091a78bdb
8 changed files with 54 additions and 31 deletions

View File

@ -1,5 +1,5 @@
// lib/gallery-views.tsx
import { Link } from "lucide-react";
import Link from "next/link";
import Image from "next/image";
interface ExamResults {
@ -8,6 +8,11 @@ interface ExamResults {
answers: string[];
}
interface LinkedViews {
id: string;
content: React.ReactNode;
}
export const getResultViews = (examResults: ExamResults | null) => [
{
id: 1,
@ -99,7 +104,7 @@ export const getResultViews = (examResults: ExamResults | null) => [
},
];
export const getLinkedViews = () => [
export const getLinkedViews = (): LinkedViews[] => [
{
id: "1",
content: (