mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* 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
22 lines
429 B
TypeScript
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} />;
|
|
}
|