mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
* Move BitwiseCmd to typescript * Add serve-build http command * Add Env type * Add CNAME and sitemap.xml files * Add files via upload
13 lines
317 B
TypeScript
13 lines
317 B
TypeScript
import React from 'react';
|
|
import cmd from '../core/cmd';
|
|
|
|
type CommandLinkProps = {
|
|
command?:string;
|
|
text:string;
|
|
}
|
|
|
|
function CommandLink(props: CommandLinkProps) {
|
|
return <a href="javascript:void(0)" onClick={e => cmd.execute(props.command || props.text)}>{props.text}</a>
|
|
}
|
|
|
|
export default CommandLink; |