mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
18 lines
439 B
TypeScript
18 lines
439 B
TypeScript
import React, { useEffect } from "react";
|
|
|
|
import Navigation from "../components/Navigation";
|
|
import Table from "../components/Table";
|
|
|
|
import useRouter from "../hooks/useRouter";
|
|
|
|
export default function TableView() {
|
|
const router = useRouter();
|
|
const tableCollection = router.location.pathname.split("/")[2];
|
|
|
|
return (
|
|
<Navigation header={tableCollection}>
|
|
<Table collection={tableCollection} />
|
|
</Navigation>
|
|
);
|
|
}
|