import clsx from "clsx"; import React from "react"; import Ping from "./Ping"; type WindowButtonProps = { ping?: boolean; // Toggles the ping animation onClick?: () => void; icon: React.ReactNode; text: string; border?: boolean; }; const WindowButton = ({ ping, onClick, icon, text, border }: WindowButtonProps) => { return (
{ping ? : <>} {icon}

{text}

); }; export default WindowButton;