mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
import { Box, chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { formatName } from './utils';
|
|
|
|
interface Props {
|
|
name: string;
|
|
className?: string;
|
|
}
|
|
|
|
const MetadataAccordionItemTitle = ({ name, className }: Props) => {
|
|
return (
|
|
<Box w={{ base: 'auto', lg: '90px' }} flexShrink={ 0 } fontWeight={ 600 } wordBreak="break-word" className={ className }>
|
|
{ formatName(name) }
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default React.memo(chakra(MetadataAccordionItemTitle));
|