mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
24 lines
431 B
TypeScript
24 lines
431 B
TypeScript
"use client";
|
|
|
|
import { Admin, type BkndAdminProps } from "bknd/ui";
|
|
|
|
export const AdminImpl = (props: BkndAdminProps) => {
|
|
if (typeof window === "undefined") {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Admin
|
|
withProvider
|
|
config={{
|
|
basepath: "/admin",
|
|
logo_return_path: "/../",
|
|
...props.config,
|
|
}}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default AdminImpl;
|