Files
buzz/components/conditional.tsx
T
dmgnr 50629b9085
Build and Push Image / build-backend (push) Successful in 36s
Build and Push Image / build-frontend (push) Failing after 1m42s
Build and Push Image / push (push) Skipped
feat(rg): parallelize
2026-09-30 19:01:09 +07:00

16 lines
258 B
TypeScript

"use client";
import type { MaybePromise } from "bun";
import { use, type ReactNode } from "react";
export function Conditional({
children,
c,
}: {
children: ReactNode;
c: MaybePromise<any>;
}) {
const val = use(c);
return !!val && children;
}