mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
19 lines
455 B
TypeScript
19 lines
455 B
TypeScript
import React from 'react';
|
|
import './index.scss';
|
|
import { PluginProps } from '@ali/lowcode-types';
|
|
|
|
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;
|