Files
omnivore/packages/web/components/patterns/LibraryCards/LinkedItemCard.tsx
2023-03-08 17:02:52 +08:00

12 lines
374 B
TypeScript

import type { LinkedItemCardProps } from './CardTypes'
import { LibraryGridCard } from './LibraryGridCard'
import { LibraryListCard } from './LibraryListCard'
export function LinkedItemCard(props: LinkedItemCardProps): JSX.Element {
if (props.layout == 'LIST_LAYOUT') {
return <LibraryListCard {...props} />
} else {
return <LibraryGridCard {...props} />
}
}