mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
15 lines
373 B
JavaScript
15 lines
373 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './Favicon.module.css';
|
|
|
|
function Favicon({ url, ...props }) {
|
|
const faviconUrl = url ? url : '/default-favicon.png';
|
|
|
|
return <img className={styles.favicon} src={faviconUrl} height="16" alt="" {...props} />;
|
|
}
|
|
|
|
Favicon.propTypes = {
|
|
url: PropTypes.string,
|
|
};
|
|
|
|
export default Favicon;
|