import React from 'react' import { Button } from '@uikit' import ModelActionMenu from '../ModelActionMenu' export enum ModelActionType { Start = 'Start', Stop = 'Stop', } type ModelActionStyle = { title: string } const modelActionMapper: Record = { [ModelActionType.Start]: { title: 'Start', }, [ModelActionType.Stop]: { title: 'Stop', }, } type Props = { disabled?: boolean loading?: boolean type: ModelActionType onActionClick: (type: ModelActionType) => void onDeleteClick: () => void } const ModelActionButton: React.FC = ({ disabled, loading, type, onActionClick, onDeleteClick, }) => { const styles = modelActionMapper[type] const onClick = () => { onActionClick(type) } return (
) } export default ModelActionButton