31 lines
659 B
TypeScript
31 lines
659 B
TypeScript
|
|
import Link from "next/link";
|
|
import { sites } from "../../_config/sites";
|
|
import { locationTree } from "../../actions/location.actions";
|
|
|
|
import { LocationView } from "../../components/location/location.view";
|
|
|
|
|
|
|
|
export default async function LocationPage() {
|
|
|
|
|
|
const treeNodes = await locationTree();
|
|
|
|
return (
|
|
<div className="h-screen">
|
|
<div>
|
|
<Link href={sites.location.new.url}>{sites.location.new.name}</Link>
|
|
</div>
|
|
|
|
<div>
|
|
<LocationView data={treeNodes}></LocationView>
|
|
|
|
</div>
|
|
|
|
<Link href={sites.main.url}>Home</Link>
|
|
|
|
</div>
|
|
);
|
|
}
|