import { Anchor, Box, Collapse, Flex, Table, Text } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { useTranslation } from 'next-i18next'; import { usePackageAttributesStore } from '../../../tools/client/zustands/usePackageAttributesStore'; export default function Credits() { const { t } = useTranslation('settings/common'); return ( {t('credits.madeWithLove')} ajnart {' '} and you! ); } const DependencyTable = () => { const { t } = useTranslation('settings/common'); const [opened, { toggle }] = useDisclosure(false); const { attributes } = usePackageAttributesStore(); return ( <> {t('credits.thirdPartyContent')} ({ backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0], padding: theme.spacing.xl, borderRadius: theme.radius.md, })} mt="md" > {t('credits.thirdPartyContentTable.dependencyName')} {t('credits.thirdPartyContentTable.dependencyVersion')} {Object.keys(attributes.dependencies).map((key, index) => ( {key} {attributes.dependencies[key]} ))} > ); };