import { ButtonPosition } from '@ts/types/app'; import Link from 'next/link'; import { ReactNode } from 'react'; import styles from '../Buttons.module.scss'; const ButtonLink = ({ children, target, position = 'left', isExternal = false, }: { children: ReactNode; target: string; position?: ButtonPosition; isExternal?: boolean; }) => { const classes = `${styles.btn} ${styles[position]} ${styles.tertiary}`; return isExternal ? ( {children} ) : ( {children} ); }; export default ButtonLink; cgit logo index : www.armandphilippot.com
The frontend of my personal website.Armand Philippot
summaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/slugify.ts
blob: 55ff5835faf6abf17e19f469680f022d06ede082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18