sendou.ink/app/components/SubNav.tsx
Kalle 734688296e
Tournament subs (#1394)
* Initial

* Progress

* Layout work

* New sub page initial

* Edit sub posting

* Delete sub posting

* Improve sub nav looks on mobile

* Finalized
2023-06-16 20:21:22 +03:00

30 lines
700 B
TypeScript

import { NavLink } from "@remix-run/react";
import type { LinkProps } from "@remix-run/react";
import clsx from "clsx";
import type * as React from "react";
export function SubNav({ children }: { children: React.ReactNode }) {
return (
<div>
<nav className="sub-nav__container">{children}</nav>
</div>
);
}
export function SubNavLink({
children,
className,
end = true,
...props
}: LinkProps & {
end?: boolean;
children: React.ReactNode;
}) {
return (
<NavLink className={"sub-nav__link__container"} end={end} {...props}>
<div className={clsx("sub-nav__link", className)}>{children}</div>
<div className="sub-nav__border-guy" />
</NavLink>
);
}