A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
TypeScript amazon-primeelectronepic-games-launcherepic-games-storeepic-storegaminggoggog-galaxyheroic-games-launcherlinuxplay-gamesprotonsteamwine
import './index.css'
import { MouseEvent } from 'react'
interface Props {
onClick: (e: MouseEvent) => void
children: JSX.Element
className?: string
disabled?: boolean
title?: string
}
export default function SvgButton({
onClick,
children,
className = '',
disabled = false,
title = undefined
}: Props) {
return (
<button
title={title}
disabled={disabled}
className={`svg-button ${className}`}
onClick={onClick}
>
{children}
</button>
)
}