import Tippy from "@tippyjs/react"; import { GlowEffect } from "renderer/components/shared/glow-effect.component"; import { BsmIcon, BsmIconType } from "renderer/components/svgs/bsm-icon.component"; import { useTranslation } from "renderer/hooks/use-translation.hook"; type Props = { onClick: (active: boolean) => void; active: boolean; text: string; icon: BsmIconType; infoText?: string; }; export function LaunchModToogle({ onClick, active, text, icon, infoText }: Props) { const t = useTranslation(); return (
onClick(!active)}>
{t(text)} {infoText && (
)}
); }