import type { Metadata } from "next" import Link from "next/link" import { notFound } from "next/navigation" import { CAREERS } from "@/lib/careers-data" interface Props { params: Promise<{ slug: string }> } export async function generateStaticParams() { return CAREERS.map((career) => ({ slug: career.slug })) } export async function generateMetadata({ params }: Props): Promise { const { slug } = await params const career = CAREERS.find((c) => c.slug === slug) if (!career) return { title: "角色未找到" } return { title: `${career.title} | DAL Code`, description: career.description, openGraph: { title: `${career.title} | DAL Code`, description: career.description, }, } } export default async function CareerDetailPage({ params }: Props) { const { slug } = await params const career = CAREERS.find((c) => c.slug === slug) if (!career) notFound() return (
{career.department}
·
{career.location}
·
{career.type}

{career.title}

{career.description}

角色概述

{career.description}

你会负责什么

    {career.responsibilities.map((item) => (
  • {item}
  • ))}

我们希望你具备

    {career.requirements.map((item) => (
  • {item}
  • ))}

我们期待它带来的结果

{career.outcome}

返回建设方向
) }