mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 19:27:57 +00:00
d21bfb1320
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
47 lines
971 B
TypeScript
47 lines
971 B
TypeScript
// Copyright 2017-2025 @pezkuwi/apps authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import { useApi } from '@pezkuwi/react-hooks';
|
|
|
|
import { useTranslation } from '../translate.js';
|
|
import BaseOverlay from './Base.js';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
function LocalFork ({ className }: Props): React.ReactElement<Props> | null {
|
|
const { t } = useTranslation();
|
|
const { isLocalFork } = useApi();
|
|
|
|
if (isLocalFork) {
|
|
return (
|
|
<BaseOverlay
|
|
className={className}
|
|
icon='link'
|
|
isBottom
|
|
isFull
|
|
type='info'
|
|
>
|
|
<div>
|
|
{t('Local fork powered by ')}
|
|
<a
|
|
href='https://github.com/AcalaNetwork/chopsticks'
|
|
rel='noreferrer'
|
|
target='_blank'
|
|
>
|
|
Chopsticks
|
|
</a>
|
|
.
|
|
</div>
|
|
</BaseOverlay>
|
|
);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
export default React.memo(LocalFork);
|