import { Popover } from "@components/popover"
import { codeFileExtensions } from "@lib/constants"
import clsx from "clsx"
import type { File } from "lib/server/prisma"
import styles from "./dropdown.module.css"
import buttonStyles from "@components/button/button.module.css"
import { ChevronDown, Code, File as FileIcon } from "react-feather"
import { Spinner } from "@components/spinner"
type Item = File & {
icon: JSX.Element
}
const FileDropdown = ({ files, loading }: { files: File[], loading?: boolean }) => {
if (loading) {
return
}
} else {
return {
...file,
icon: