diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-08-30 18:00:11 +0200 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2023-08-30 18:00:11 +0200 |
| commit | b7c37574f4f90fc346bc51dd06c77c8958570b33 (patch) | |
| tree | 72895a18a8d72ecd35bf9b71030d6bf40ae34167 /front/src/components/navbar-item.tsx | |
| parent | b661407d801c8ccaa7773ae30f0fc26a1d70ffff (diff) | |
all: move front into its own directory
Diffstat (limited to 'front/src/components/navbar-item.tsx')
| -rw-r--r-- | front/src/components/navbar-item.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/front/src/components/navbar-item.tsx b/front/src/components/navbar-item.tsx new file mode 100644 index 0000000..c2f2306 --- /dev/null +++ b/front/src/components/navbar-item.tsx @@ -0,0 +1,8 @@ +import * as preact from "preact"; + +export function NavbarItem(props: any) { + const { name, href, children, rel } = props; + + return (preact.createElement("div", { className: "navbar-item" }, + preact.createElement("a", { className: "navbar-item-" + name, href: href, rel: rel }, children))); +} |
