You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
480 B
20 lines
480 B
import sass from "https://deno.land/x/denosass@1.0.6/mod.ts";
|
|
import { Props } from "../types.d.ts";
|
|
import { h } from "../jsx.ts";
|
|
|
|
interface BaseHeaderProps extends Props {
|
|
id?: string;
|
|
entries: {
|
|
name: string;
|
|
href: string;
|
|
}[];
|
|
}
|
|
|
|
export default (props: BaseHeaderProps) => (
|
|
<header id={props.id} class="header">
|
|
{props.entries
|
|
.map((entry) => <a href={entry.href}>{entry.name}</a>)
|
|
.join("")}
|
|
</header>
|
|
);
|