apple2js/js/components/Header.tsx

25 lines
573 B
TypeScript
Raw Normal View History

import { h } from 'preact';
/**
* Header component properties.
*/
export interface HeaderProps {
e: boolean;
}
/**
* Header component, which consists of a badge and title.
*
* @returns Header component
*/
export const Header = ({ e }: HeaderProps) => {
return (
<div id="header">
<a href="https://github.com/whscullin/apple2js#readme" target="_blank">
<img src="img/badge.png" id="badge" />
</a>
<div id="subtitle">An Apple {e ? '//e' : ']['} Emulator in JavaScript</div>
</div>
);
};