add new page links and remove unused templates, add icon for external link
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
import styles from "./icon.module.scss";
|
||||
|
||||
export default function Icon({ type }: { type?: "doc" | "arrow" }) {
|
||||
export default function Icon({
|
||||
type,
|
||||
}: {
|
||||
type?: "doc" | "arrow" | "externalLink";
|
||||
}) {
|
||||
return (
|
||||
<div className={styles.icon}>
|
||||
{type === "doc" && (
|
||||
@ -12,6 +16,7 @@ export default function Icon({ type }: { type?: "doc" | "arrow" }) {
|
||||
</svg>
|
||||
)}
|
||||
{type === "arrow" && <div>→</div>}
|
||||
{type === "externalLink" && <div>↗</div>}
|
||||
{!type && (
|
||||
<div>
|
||||
<svg
|
||||
|
Reference in New Issue
Block a user