"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 (
{isRoot ? : }

{isRoot ? t("empty_state_title") : t("empty_folder_title")}

{canCreate ? t("empty_folder_description") : t("empty_folder_read_only")}

{canCreate && (
)}
); } export function NoSearchResults({ query, onClear }: { query: string; onClear: () => void }) { const t = useTranslations("files"); return (

{t("no_results_for", { query })}

); }