mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-05 01:38:56 -05:00
4a5fb549c6
* add first concept * add reverse share funcionality to frontend * allow creator to limit share expiration * moved reverse share in seperate module * add table to manage reverse shares * delete complete share if reverse share was deleted * optimize function names * add db migration * enable reverse share email notifications * fix config variable descriptions * fix migration for new installations
29 lines
731 B
TypeScript
29 lines
731 B
TypeScript
import { ActionIcon, Menu } from "@mantine/core";
|
|
import Link from "next/link";
|
|
import { TbArrowLoopLeft, TbLink } from "react-icons/tb";
|
|
|
|
const NavbarShareMneu = () => {
|
|
return (
|
|
<Menu position="bottom-start" withinPortal>
|
|
<Menu.Target>
|
|
<ActionIcon>
|
|
<TbLink />
|
|
</ActionIcon>
|
|
</Menu.Target>
|
|
<Menu.Dropdown>
|
|
<Menu.Item component={Link} href="/account/shares" icon={<TbLink />}>
|
|
My shares
|
|
</Menu.Item>
|
|
<Menu.Item
|
|
component={Link}
|
|
href="/account/reverseShares"
|
|
icon={<TbArrowLoopLeft />}
|
|
>
|
|
Reverse shares
|
|
</Menu.Item>
|
|
</Menu.Dropdown>
|
|
</Menu>
|
|
);
|
|
};
|
|
|
|
export default NavbarShareMneu;
|