mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import { cn } from 'lib/utils/cn';
|
|
import React from 'react';
|
|
|
|
import { formatName } from './utils';
|
|
|
|
interface Props {
|
|
name: string;
|
|
className?: string;
|
|
}
|
|
|
|
const MetadataAccordionItemTitle = ({ name, className }: Props) => {
|
|
return (
|
|
<div className={ cn('w-auto lg:w-[90px] shrink-0 font-semibold break-words', className) }>
|
|
{ formatName(name) }
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default React.memo(MetadataAccordionItemTitle);
|