mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-22 02:14:41 -05:00
24 lines
662 B
TypeScript
24 lines
662 B
TypeScript
import { LinkButton } from "~/components/elements/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="small" className={styles.addNewButton}>
|
|
<span className={styles.iconsContainer}>
|
|
<PlusIcon />
|
|
<Image path={navIconUrl(navIcon)} size={18} alt="" />
|
|
</span>
|
|
<span className={styles.textContainer}>New</span>
|
|
</LinkButton>
|
|
);
|
|
}
|