sendou.ink/app/components/AddNewButton.tsx
2026-01-10 22:06:13 +01:00

24 lines
643 B
TypeScript

import { Plus } from "lucide-react";
import { LinkButton } from "~/components/elements/Button";
import { Image } from "~/components/Image";
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="small" className={styles.addNewButton}>
<span className={styles.iconsContainer}>
<Plus />
<Image path={navIconUrl(navIcon)} size={18} alt="" />
</span>
<span className={styles.textContainer}>New</span>
</LinkButton>
);
}