Partials OK, auto navbar and content
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { EmptyObject } from "$root/defaults/interfaces.ts";
|
||||
|
||||
export default function makeIndex<
|
||||
IndexProps = EmptyObject,
|
||||
>(basePath: string) {
|
||||
return async function Index(props: IndexProps) {
|
||||
const index = (await import(`${basePath}/partials/index.tsx`)).Index;
|
||||
return index(props);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user