Tranga-Website/Website/modules/Header.tsx

15 lines
713 B
TypeScript
Raw Normal View History

2024-10-18 02:10:58 +02:00
import React from 'react';
import '../styles/header.css'
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">
<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>)
}