2020-03-26 21:24:30 +08:00

19 lines
477 B
TypeScript

import React from 'react';
import './index.scss';
import { PluginProps } from '@ali/lowcode-editor-core/lib/definitions';
export interface IProps {
logo?: string;
href?: string;
}
const Logo: React.FC<IProps & PluginProps> = (props): React.ReactElement => {
return (
<div className="lowcode-plugin-logo">
<a className="logo" target="blank" href={props.href || '/'} style={{ backgroundImage: `url(${props.logo})` }} />
</div>
);
};
export default Logo;