import './Launcher.css';
import React from 'react';

export interface LauncherProps {
    title: string,
    icon?: string,
    activated?: boolean,
    onSelected?: (key: string) => void,
}

const Launcher = ({ title, activated = false, onSelected = (key) => {} }: LauncherProps) => {
    const classnames = activated ? "activator activator_enabled" : "activator";
    console.log("classnames ", activated, classnames);
    return (
        <div className={classnames} onClick={() => onSelected(title)}>
            <p> {title} </p>
        </div>)
}

export default Launcher;
