mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-02 16:01:49 +02:00
16 lines
528 B
TypeScript
16 lines
528 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface IActionButtonProps {
|
|
title: string;
|
|
className?: string;
|
|
disabled?: boolean;
|
|
onClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
|
|
}
|
|
|
|
export const ActionButton: React.FunctionComponent<IActionButtonProps> = ({className, onClick, disabled,title}: React.PropsWithChildren<IActionButtonProps>) => {
|
|
return (
|
|
<div className={`article__action`}>
|
|
<button onClick={onClick} className={className || ""} disabled={disabled}>{title}</button>
|
|
</div>
|
|
);
|
|
}; |