layout.tsx 383 B

1234567891011121314151617
  1. import { Header } from "@/components/header";
  2. import { getStarCount } from "@/lib/github";
  3. export default async function MainLayout({
  4. children,
  5. }: {
  6. children: React.ReactNode;
  7. }) {
  8. const stars = await getStarCount();
  9. return (
  10. <div className="min-h-screen flex flex-col">
  11. <Header stars={stars} />
  12. <main className="flex-1">{children}</main>
  13. </div>
  14. );
  15. }