mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
public commit
This commit is contained in:
11
examples/nextjs/src/components/BkndAdmin.tsx
Normal file
11
examples/nextjs/src/components/BkndAdmin.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Admin = dynamic(() => import("bknd/ui").then((mod) => mod.Admin), { ssr: false });
|
||||
if (typeof window !== "undefined") {
|
||||
// @ts-ignore
|
||||
import("bknd/dist/styles.css");
|
||||
}
|
||||
|
||||
export function BkndAdmin() {
|
||||
return <Admin />;
|
||||
}
|
||||
Reference in New Issue
Block a user