import { useIntl, FormattedMessage } from '@edx/frontend-platform/i18n';
import {
ActionRow,
Dropdown,
Icon,
IconButton,
} from '@openedx/paragon';
import { MoreVert } from '@openedx/paragon/icons';
import { Link } from 'react-router-dom';
import { type CollectionHit } from '../../search-manager';
import { useLibraryContext } from '../common/context';
import BaseComponentCard from './BaseComponentCard';
import messages from './messages';
export const CollectionMenu = ({ collectionHit }: { collectionHit: CollectionHit }) => {
const intl = useIntl();
return (
e.stopPropagation()}>
);
};
type CollectionCardProps = {
collectionHit: CollectionHit,
};
const CollectionCard = ({ collectionHit }: CollectionCardProps) => {
const {
openCollectionInfoSidebar,
} = useLibraryContext();
const {
type: componentType,
formatted,
tags,
numChildren,
} = collectionHit;
const { displayName = '', description = '' } = formatted;
return (
)}
openInfoSidebar={() => openCollectionInfoSidebar(collectionHit.blockId)}
/>
);
};
export default CollectionCard;