2023-05-16 08:21:42 +00:00
|
|
|
import { Center, Flex, Link, Text, Wrap, WrapItem } from '@chakra-ui/react';
|
|
|
|
import { Suspense, useMemo } from 'react';
|
2023-05-14 23:09:54 +00:00
|
|
|
import { SDKVersion } from './SDKVersion';
|
2023-05-07 22:29:37 +00:00
|
|
|
|
|
|
|
export function Footer() {
|
2023-05-16 08:21:42 +00:00
|
|
|
const year = useMemo(() => new Date().getFullYear(), []);
|
2023-05-07 22:29:37 +00:00
|
|
|
return (
|
|
|
|
<Center height="footer.container">
|
|
|
|
<Center
|
|
|
|
height="footer.content"
|
|
|
|
fontSize="sm"
|
|
|
|
textAlign="center"
|
|
|
|
position="fixed"
|
|
|
|
bottom="0"
|
|
|
|
w="full"
|
|
|
|
bg="gray.100"
|
|
|
|
color="gray.800"
|
|
|
|
left="0"
|
|
|
|
flexDir="column"
|
|
|
|
>
|
2023-05-14 23:22:23 +00:00
|
|
|
<Flex as={Text}>
|
2023-05-16 08:21:42 +00:00
|
|
|
音乐解锁 (__APP_VERSION_SHORT__
|
2023-05-14 23:09:54 +00:00
|
|
|
<Suspense>
|
|
|
|
<SDKVersion />
|
|
|
|
</Suspense>
|
2023-05-16 08:21:42 +00:00
|
|
|
) - 移除已购音乐的加密保护
|
2023-05-14 23:22:23 +00:00
|
|
|
</Flex>
|
2023-05-16 08:21:42 +00:00
|
|
|
<Wrap>
|
|
|
|
<WrapItem>Copyright © 2019 - {year}</WrapItem>
|
|
|
|
<WrapItem>
|
|
|
|
<Link href="https://git.unlock-music.dev/um" isExternal>UnlockMusic 团队</Link>
|
|
|
|
</WrapItem>
|
|
|
|
<WrapItem>|</WrapItem>
|
|
|
|
<WrapItem>音乐解锁授权基于</WrapItem>
|
|
|
|
<WrapItem>
|
|
|
|
<Link href="https://git.unlock-music.dev/um/um-react/src/branch/main/LICENSE" isExternal>MIT许可协议</Link>
|
|
|
|
</WrapItem>
|
|
|
|
</Wrap>
|
2023-05-07 22:29:37 +00:00
|
|
|
</Center>
|
|
|
|
</Center>
|
|
|
|
);
|
|
|
|
}
|