import React from "react"; import { Box, Typography, IconButton, Tooltip } from "@mui/material"; import OpenInNewIcon from "@mui/icons-material/OpenInNew"; import ShareIcon from "@mui/icons-material/Share"; import DarkModeOutlinedIcon from "@mui/icons-material/DarkModeOutlined"; import LightModeOutlinedIcon from "@mui/icons-material/LightModeOutlined"; import { useThemeMode } from "../hooks/useThemeMode"; const ExternalLinks = () => { const { mode, toggleTheme } = useThemeMode(); const handleShare = async () => { try { await navigator.share({ title: "YourBench Demo", text: "Check out this benchmark evaluation on YourBench!", url: window.location.href, }); } catch (err) { console.log("Error sharing:", err); } }; return ( GitHub Dataset Documentation Full demo {mode === "light" ? ( ) : ( )} ); }; export default ExternalLinks;