24 lines
447 B
TypeScript
24 lines
447 B
TypeScript
import { Tree } from "@mantine/core";
|
|
|
|
// ✅ Valid data, all values are unique
|
|
const data = [
|
|
{
|
|
value: "src",
|
|
label: "src",
|
|
children: [
|
|
{ value: "src/components", label: "components" },
|
|
{ value: "src/hooks", label: "hooks" },
|
|
],
|
|
},
|
|
{ value: "package.json", label: "package.json" },
|
|
];
|
|
|
|
export default function DirPage() {
|
|
return (
|
|
<div>
|
|
<h1>Dir Page</h1>
|
|
<Tree data={data} />
|
|
</div>
|
|
);
|
|
}
|