WK 8c2613713a
refactor: migrate eslint to v9 (#5267)
* refactor: migrate eslint to v9

* chore: lint

* chore: update eslint command

* chore: fix lint warnings

* chore: separate lint and lint:fix

* chore: exclude contentlayer generated code

* fix(scripts): add missing await
2025-06-01 13:51:30 -03:00

22 lines
429 B
TypeScript

import {Support as SupportClient} from "./support-client";
import {getAllSponsors} from "@/utils/get-all-sponsors";
async function getData() {
try {
const sponsors = await getAllSponsors();
return {
sponsors,
};
} catch {
throw new Error("Failed to fetch data");
}
}
export default async function Support() {
const data = await getData();
return <SupportClient sponsors={data.sponsors} />;
}