import React from "react"; import ServerIcon from "@/components/Icons/Server"; import FolderIcon from "@/components/Icons/Folder"; interface Props { serverId: string; path: string; changeDirectory: (path: string) => void; } const index = ({ serverId, path, changeDirectory }: Props) => { const onClickHandler = (e: React.MouseEvent) => { const newPath = e.currentTarget.getAttribute("data-custom-attribute"); if (!newPath) return; changeDirectory(newPath); }; const elements = path.split("/").filter((p) => p !== ""); console.log(elements); return (
); }; export default index;