"use client"; import { useTranslations } from "next-intl"; import { Upload, FolderPlus, FolderOpen, SearchX } from "@/components/icons"; import { Button } from "@/components/ui/button"; interface EmptyFolderProps { isRoot: boolean; canCreate: boolean; onUpload: () => void; onCreateFolder: () => void; } /** What an empty folder shows: what to do next, and that dropping files works. */ export function EmptyFolder({ isRoot, canCreate, onUpload, onCreateFolder }: EmptyFolderProps) { const t = useTranslations("files"); return (
{canCreate ? t("empty_folder_description") : t("empty_folder_read_only")}
{canCreate && ({t("no_results_for", { query })}