"use client" import { useTranslations } from "next-intl" import { School } from "lucide-react" import { type ReactElement } from "react" import { Input } from "@/shared/components/ui/input" import { Label } from "@/shared/components/ui/label" import { Textarea } from "@/shared/components/ui/textarea" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/shared/components/ui/card" export interface SchoolInfoValues { schoolName: string schoolCode: string schoolPhone: string schoolEmail: string schoolAddress: string schoolDescription: string } interface SchoolInfoCardProps { values: SchoolInfoValues onChange: (key: keyof SchoolInfoValues, value: string) => void } /** * 管理员系统设置 - 学校信息卡片 */ export function SchoolInfoCard({ values, onChange }: SchoolInfoCardProps): ReactElement { const t = useTranslations("settings.admin.schoolInfo") return (
{t("title")} {t("description")}
onChange("schoolName", e.target.value)} />
onChange("schoolCode", e.target.value)} />
onChange("schoolPhone", e.target.value)} />
onChange("schoolEmail", e.target.value)} />
onChange("schoolAddress", e.target.value)} />