sendou.ink/app/components/AddNewButton.tsx
Kalle b621e2ff96
Add new buttons (#2368)
* Initial

* Buttons everywhere

* Better 401 text
2025-06-05 21:44:05 +03:00

24 lines
652 B
TypeScript

import { LinkButton } from "~/components/Button";
import { Image } from "~/components/Image";
import { PlusIcon } from "~/components/icons/Plus";
import { navIconUrl } from "~/utils/urls";
import styles from "./AddNewButton.module.css";
interface AddNewButtonProps {
to: string;
navIcon: string;
}
export function AddNewButton({ to, navIcon }: AddNewButtonProps) {
return (
<LinkButton to={to} size="tiny" className={styles.addNewButton}>
<span className={styles.iconsContainer}>
<PlusIcon />
<Image path={navIconUrl(navIcon)} size={18} alt="" />
</span>
<span className={styles.textContainer}>New</span>
</LinkButton>
);
}