Quest for Codev2.0.0
/
SIGN IN
next.js/test/development/acceptance-app/fixtures/app-hmr-changes/app/(post)/components/footnotes.tsx
footnotes.tsx29 lines630 B
import { A } from './a'
import { P } from './p'

export const FootNotes = ({ children }) => (
  <div className="text-base before:w-[200px] before:m-auto before:content[''] before:border-t before:border-gray-300 dark:before:border-[#444] before:block before:my-10">
    {children}
  </div>
)

export const Ref = ({ id }) => (
  <a
    href={`#f${id}`}
    id={`s${id}`}
    className="relative text-xs top-[-5px] no-underline"
  >
    [{id}]
  </a>
)

export const FootNote = ({ id, children }) => (
  <P>
    {id}.{' '}
    <A href={`#s${id}`} id={`f${id}`} className="no-underline">
      ^
    </A>{' '}
    {children}
  </P>
)