import { useAccount } from 'shared/hooks/use-account.mjs' import { useTranslation } from 'next-i18next' import Link from 'next/link' import { PageLink } from 'shared/components/page-link.mjs' import { freeSewingConfig as conf } from 'shared/config/freesewing.config.mjs' import { Fingerprint } from 'shared/components/fingerprint.mjs' export const ns = ['account'] const Li = ({ children }) =>
  • {children}
  • const Spacer = () =>
  • |
  • const LinkList = ({ items, t, control, first = false }) => { const output = [] if (first) output.push(
  • {first}:
  • ) for (const [item, cscore] of Object.entries(items)) { if (cscore <= control) output.push(
  • , ) } return output.length > 1 ? : null } const actions = { reload: 4, export: 3, restrict: 4, disable: 4, remove: 2, } export const AccountLinks = () => { const { account, clear } = useAccount() const { t } = useTranslation(ns) const lprops = { t, control: account.control } return (
    {t('newPattern')}
    {t('newSet')}
    {Object.keys(conf.account.fields).map((section) => ( ))}
    ) }