mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import React from 'react';
|
|
|
|
import { Tooltip } from '@luxfi/ui/tooltip';
|
|
import IconSvg from 'ui/shared/IconSvg';
|
|
import type { IconName, Props as IconSvgProps } from 'ui/shared/IconSvg';
|
|
|
|
interface Props extends Omit<IconSvgProps, 'name'> {
|
|
name?: IconName;
|
|
}
|
|
|
|
const FallbackRpcIcon = (props: Props) => {
|
|
return (
|
|
<Tooltip content="Our indexer is experiencing problems, you see the data directly from RPC">
|
|
<IconSvg name="RPC" className="size-5 text-[var(--color-orange-400)]" { ...props }/>
|
|
</Tooltip>
|
|
);
|
|
};
|
|
|
|
export default React.memo(FallbackRpcIcon);
|