import { getProfile } from "@/actions/user-actions"; import { AgreementCard } from "@/components/agreement-card"; import { tryCatch } from "@/utils/tryCatch"; export default async function Agreements() { const [error, profile] = await tryCatch(getProfile()) return (

Agreements

{error ? (
An error occurred while fetching agreements: {error.message}
) : (
)}
); }