import { Box, HStack, Flex } from '@chakra-ui/react'; import React from 'react'; import { Skeleton } from 'toolkit/chakra/skeleton'; import CopyToClipboard from 'ui/shared/CopyToClipboard'; import IconSvg from 'ui/shared/IconSvg'; interface Props { apiKey: string; name: string; isLoading?: boolean; } const ApiKeySnippet = ({ apiKey, name, isLoading }: Props) => { return ( { apiKey } { name && ( { name } ) } ); }; export default React.memo(ApiKeySnippet);