import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "../ui/dropdown-menu"; import { Button } from "../ui/button"; import { useTranslation } from "react-i18next"; import { FaFilm } from "react-icons/fa6"; type ActionsDropdownProps = { onDebugReplayClick?: () => void; onExportClick: () => void; onShareTimestampClick: () => void; onMotionSearchClick?: () => void; }; export default function ActionsDropdown({ onDebugReplayClick, onExportClick, onShareTimestampClick, onMotionSearchClick, }: Readonly) { const { t } = useTranslation([ "components/dialog", "views/replay", "views/events", "common", ]); return ( {t("menu.export", { ns: "common" })} {t("recording.shareTimestamp.label", { ns: "components/dialog" })} {onMotionSearchClick && ( {t("motionSearch.menuItem", { ns: "views/events" })} )} {onDebugReplayClick && ( {t("title", { ns: "views/replay" })} )} ); }