mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
4a188a9a5c
First pass at a Preact UI, still short some major features but full proof of concept.
25 lines
573 B
TypeScript
25 lines
573 B
TypeScript
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>
|
|
);
|
|
};
|