mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
21 lines
390 B
TypeScript
21 lines
390 B
TypeScript
import React from 'react';
|
|
|
|
interface Props {
|
|
url: string | undefined;
|
|
isInvalid: boolean;
|
|
children: React.ReactElement;
|
|
}
|
|
|
|
const TokenInfoIconPreview = ({ url, isInvalid, children }: Props) => {
|
|
const borderColorActive = isInvalid ? 'error' : 'input.border.filled';
|
|
|
|
return (
|
|
<div
|
|
>
|
|
{ children }
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default React.memo(TokenInfoIconPreview);
|