mirror of
https://github.com/SomboChea/ui
synced 2024-09-29 12:57:52 +07:00
d1ce82854a
* refactor: replaced class by func.comp * refactor: replacing jest test by react-testing-library * refactor: added test todos * feat: added more unit tests * fix: fixed tooltip import * fix: fixed test * fix: fixed typo * fix: fixed imports
18 lines
272 B
TypeScript
18 lines
272 B
TypeScript
import React from 'react';
|
|
|
|
import Logo from '../Logo';
|
|
|
|
interface Props {
|
|
logo?: string;
|
|
}
|
|
|
|
const HeaderLogo: React.FC<Props> = ({ logo }) => {
|
|
if (logo) {
|
|
return <img alt="logo" height="40px" src={logo} />;
|
|
}
|
|
|
|
return <Logo />;
|
|
};
|
|
|
|
export default HeaderLogo;
|