2024-10-18 02:10:58 +02:00
|
|
|
import React from 'react';
|
2024-10-18 19:44:15 +02:00
|
|
|
import '../styles/header.css'
|
2024-10-20 17:54:38 +02:00
|
|
|
import Settings from "./Settings";
|
|
|
|
import IFrontendSettings from "./interfaces/IFrontendSettings";
|
2024-10-18 02:10:58 +02:00
|
|
|
|
2024-10-20 20:12:27 +02:00
|
|
|
export default function Header({backendConnected, apiUri, settings, changeSettings} : {backendConnected: boolean, apiUri: string, settings: IFrontendSettings, changeSettings(settings: IFrontendSettings): void}){
|
2024-10-18 02:10:58 +02:00
|
|
|
return (
|
|
|
|
<header>
|
|
|
|
<div id="titlebox">
|
2024-10-20 17:54:38 +02:00
|
|
|
<img alt="website image is Blahaj" src="../media/blahaj.png"/>
|
2024-10-18 02:10:58 +02:00
|
|
|
<span>Tranga</span>
|
|
|
|
</div>
|
2024-10-20 20:12:27 +02:00
|
|
|
<Settings settings={settings} changeSettings={changeSettings} backendConnected={backendConnected} apiUri={apiUri}/>
|
2024-10-18 02:10:58 +02:00
|
|
|
</header>)
|
|
|
|
}
|