Small thing

This commit is contained in:
2025-11-11 19:56:13 +01:00
parent defbbc35f8
commit 03a8b837b6
6 changed files with 312 additions and 33 deletions
+16
View File
@@ -0,0 +1,16 @@
"use client";
import { SetState } from "@/lib/types";
import React, { useState } from "react";
export default function Router({
children,
route,
setRoute,
}: {
children: (route: string) => React.JSX.Element;
route: string;
setRoute: SetState<string>;
}) {
return children(route);
}