feat(SW-185): Moved types to types folder

This commit is contained in:
Pontus Dreij
2024-08-28 08:58:04 +02:00
parent cce5af83a4
commit b86d799fb1
2 changed files with 5 additions and 1 deletions

View File

@@ -9,9 +9,10 @@ import { footer } from "../mockedData"
import styles from "./details.module.css"
import type { SocialIconsProps } from "@/types/components/footer/socialIcons"
import { IconName } from "@/types/components/icon"
function SocialIcon({ iconName }: { iconName: string }) {
function SocialIcon({ iconName }: SocialIconsProps) {
const SocialIcon = getIconByIconName(iconName as IconName)
return SocialIcon ? <SocialIcon color="white" /> : <span>{iconName}</span>
}

View File

@@ -0,0 +1,3 @@
export type SocialIconsProps = {
iconName: string
}