-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.tsx
28 lines (26 loc) · 932 Bytes
/
footer.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { SocialIcons } from "./icons";
import { Link } from "./link"
interface FooterProps {
socials: string[],
name: string,
domain: string
iconSize?: number
}
export const Footer: React.FC<FooterProps> = ({ socials, name, domain, iconSize=23 }) => {
const year = new Date().getFullYear();
return(
<footer className="w-full flex flex-col items-center justify-center space-x-4 pb-4">
<div className="text-sm">
©<span className="text-default-600">Copyright</span> 2010~{year}
<Link
isExternal
className="text-current"
href={`https://${domain}`}
>
<span className="text-primary text-sm">{name}</span>
</Link>
<SocialIcons links={socials} iconSize={iconSize} mx={2} />
</div>
</footer>
)
}