Skip to content
Snippets Groups Projects

Resolve "[MIN-251] Clicking on a protein: annotation"

Merged Piotr Gawron requested to merge 186-element-annotation into development
Files
5
import { Icon } from '@/shared/Icon';
import { Reference } from '@/types/models';
import { twMerge } from 'tailwind-merge';
type AnnotationItemProps = Pick<Reference, 'link' | 'type' | 'resource'>;
export const AnnotationItem = ({ link, type, resource }: AnnotationItemProps): JSX.Element => (
<a className="pl-3 text-sm font-normal" href={link?.toString()} target="_blank">
<a
className={twMerge('pl-3 text-sm font-normal', link ? 'text-blue-800 underline' : '')}
href={link?.toString()}
target="_blank"
>
<div className="flex justify-between">
<span>
Source:{' '}
<b className="font-semibold">
{type} ({resource})
</b>
<span className="w-full font-semibold">
{type} ({resource})
</span>
<Icon name="arrow" className="h-6 w-6 fill-font-500" />
</div>
</a>
);
Loading