mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
36 lines
875 B
TypeScript
36 lines
875 B
TypeScript
import { chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { IconButton } from 'toolkit/chakra/icon-button';
|
|
import IconSvg from 'ui/shared/IconSvg';
|
|
|
|
interface Props {
|
|
loading?: boolean;
|
|
className?: string;
|
|
}
|
|
|
|
const AdditionalInfoButton = (props: Props, ref: React.ForwardedRef<HTMLButtonElement>) => {
|
|
const { loading, ...rest } = props;
|
|
|
|
return (
|
|
<IconButton
|
|
ref={ ref }
|
|
color="icon.info"
|
|
_hover={{ color: 'link.primary.hover' }}
|
|
_open={{
|
|
bgColor: { _light: 'blue.50', _dark: 'gray.600' },
|
|
color: 'link.primary.hover',
|
|
}}
|
|
borderRadius="base"
|
|
aria-label="Transaction info"
|
|
boxSize={ 6 }
|
|
loadingSkeleton={ loading }
|
|
{ ...rest }
|
|
>
|
|
<IconSvg name="info" boxSize={ 5 }/>
|
|
</IconButton>
|
|
);
|
|
};
|
|
|
|
export default chakra(React.forwardRef(AdditionalInfoButton));
|