mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-07-31 13:35:43 +00:00
34 lines
766 B
TypeScript
34 lines
766 B
TypeScript
// Copyright 2017-2026 @pezkuwi/app-bounties authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { StatusName } from './types.js';
|
|
|
|
import React from 'react';
|
|
|
|
import { styled } from '@pezkuwi/react-components';
|
|
|
|
import { insertSpaceBeforeCapitalLetter } from './helpers/index.js';
|
|
|
|
interface Props {
|
|
bountyStatus: StatusName;
|
|
className?: string;
|
|
}
|
|
|
|
function BountyStatusView ({ bountyStatus, className = '' }: Props): React.ReactElement<Props> {
|
|
return (
|
|
<StyledDiv
|
|
className={className}
|
|
data-testid={'bountyStatus'}
|
|
>
|
|
{insertSpaceBeforeCapitalLetter(bountyStatus)}
|
|
</StyledDiv>
|
|
);
|
|
}
|
|
|
|
const StyledDiv = styled.div`
|
|
display: flex;
|
|
align-items: center;
|
|
`;
|
|
|
|
export default React.memo(BountyStatusView);
|