// Copyright 2017-2026 @pezkuwi/app-claims authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { StatementKind } from '@pezkuwi/types/interfaces'; import React from 'react'; import { styled } from '@pezkuwi/react-components'; import { useTranslation } from './translate.js'; import { getStatement } from './util.js'; export interface Props { className?: string; kind?: StatementKind | null; systemChain: string; } // Get the full hardcoded text for a statement function StatementFullText ({ statementUrl, systemChain }: { statementUrl?: string; systemChain: string }): React.ReactElement | null { const { t } = useTranslation(); switch (systemChain) { case 'Pezkuwi': case 'Pezkuwi CC1': return statementUrl ? : null; default: return
{t('Warning: we did not find any attest statement for {{chain}}', { replace: { chain: systemChain } })}
; } } function Statement ({ className, kind, systemChain }: Props): React.ReactElement