Files
web2.0-frontend/src/components/NavbarChildLink/NavbarChildLink.tsx
T
2020-07-03 15:15:56 +03:00

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;