import { File } from "@lib/server/prisma" import FileIcon from "@geist-ui/icons/fileText" import CodeIcon from "@geist-ui/icons/fileLambda" import styles from "./file-tree.module.css" import ShiftBy from "@components/shift-by" import { useEffect, useState } from "react" import { codeFileExtensions } from "@lib/constants" import Link from "@components/link" type Item = File & { icon: JSX.Element } const Card = ({ children, className, ...props }: { children: React.ReactNode className?: string } & React.ComponentProps<"div">) => (