mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-27 01:55:46 +00:00
c71ddb6e0d
- Clone Polkadot.js Apps repository - Update package.json with Pezkuwi branding - Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944) - Create comprehensive README for SDK UI - Set up project structure with all packages Next steps: - Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme - Replace logos with Pezkuwi branding - Test build and deployment
32 lines
784 B
TypeScript
32 lines
784 B
TypeScript
// Copyright 2017-2025 @polkadot/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import Icon from './Icon.js';
|
|
import { styled } from './styled.js';
|
|
|
|
interface Props {
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
content?: React.ReactNode;
|
|
withIcon?: boolean;
|
|
}
|
|
|
|
function MarkWarning ({ children, className = '', content, withIcon = true }: Props): React.ReactElement<Props> {
|
|
return (
|
|
<StyledArticle className={`${className} mark warning`}>
|
|
{withIcon && <Icon icon='exclamation-triangle' />}{content}{children}
|
|
</StyledArticle>
|
|
);
|
|
}
|
|
|
|
const StyledArticle = styled.article`
|
|
.ui--Icon {
|
|
color: rgba(255, 196, 12, 1);
|
|
margin-right: 0.5rem;
|
|
}
|
|
`;
|
|
|
|
export default React.memo(MarkWarning);
|