- Add admin/lesson-plans, parent/lesson-plans, student/lesson-plans routes - Add student/practice and teacher/practice routes for adaptive practice - Add management/grade/dashboard and management/grade/practice routes - Add teacher/lesson-plans error and loading boundaries - Update existing admin, parent, student, teacher pages with new features - Update globals.css and proxy middleware
27 lines
634 B
TypeScript
27 lines
634 B
TypeScript
"use client"
|
|
|
|
import { EmptyState } from "@/shared/components/ui/empty-state"
|
|
import { AlertTriangle } from "lucide-react"
|
|
import { useTranslations } from "next-intl"
|
|
|
|
export default function ParentError({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string }
|
|
reset: () => void
|
|
}) {
|
|
const t = useTranslations("common")
|
|
|
|
return (
|
|
<div className="p-6 md:p-8">
|
|
<EmptyState
|
|
icon={AlertTriangle}
|
|
title={t("somethingWentWrong")}
|
|
description={error.message || "An unexpected error occurred. Please try again."}
|
|
action={{ label: t("tryAgain"), onClick: reset }}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|