24 lines
491 B
TypeScript
24 lines
491 B
TypeScript
import React from "react";
|
|
import "./NavbarChildLink.scss";
|
|
import Anchor from "../Anchor";
|
|
|
|
export interface NavbarChildLinkProps {
|
|
to: string;
|
|
}
|
|
export interface NavbarChildLinkState {
|
|
open: boolean;
|
|
}
|
|
|
|
class NavbarChildLink extends React.Component<NavbarChildLinkProps, NavbarChildLinkState> {
|
|
render() {
|
|
return (
|
|
<Anchor className="navbar-child-link"
|
|
to={this.props.to}>
|
|
{this.props.children}
|
|
</Anchor>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default NavbarChildLink;
|