mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
26 lines
478 B
TypeScript
26 lines
478 B
TypeScript
import React from 'react';
|
|
|
|
import type { TokenVerifiedInfo } from 'types/api/token';
|
|
|
|
import InfoButton from 'ui/shared/InfoButton';
|
|
|
|
import Content, { hasContent } from './TokenProjectInfo/Content';
|
|
|
|
interface Props {
|
|
data: TokenVerifiedInfo;
|
|
}
|
|
|
|
const TokenProjectInfo = ({ data }: Props) => {
|
|
if (!hasContent(data)) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<InfoButton>
|
|
<Content data={ data }/>
|
|
</InfoButton>
|
|
);
|
|
};
|
|
|
|
export default React.memo(TokenProjectInfo);
|