import Link from '@docusaurus/Link'
import type { FC, ReactNode } from 'react'
import { memo } from 'react'
interface Props {
readonly text?: ReactNode
}
export const ExternalLinks = {
WeakMap: memo(({ text = 'WeakMap' }) => (
{text}
)),
ReferenceEqualityCheck: memo(({ text = 'Reference Equality Check' }) => (
{text}
)),
Memoization: memo(({ text = 'memoization' }) => (
{text}
)),
IdentityFunction: memo(({ text = 'Identity Function' }) => (
{text}
)),
UseMemo: memo(({ text = 'useMemo' }) => (
{text}
)),
ReReselect: memo(({ text = 'Re-reselect' }) => (
{text}
)),
Redux: memo(({ text = 'Redux' }) => (
{text}
)),
React: memo(({ text = 'React' }) => (
{text}
)),
ReactRedux: memo(({ text = 'React-Redux' }) => (
{text}
)),
ReduxToolkit: memo(({ text = 'Redux-Toolkit' }) => (
{text}
))
} as const satisfies Record>
export const AllExternalLinks: FC = memo(() => {
return (
{Object.values(ExternalLinks).map((ExternalLink, index) => (
-
))}
)
})