Files
PolyMPR/defaults/makeIndex.ts
T
2025-01-15 15:43:52 +01:00

11 lines
303 B
TypeScript

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);
};
}