mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
13 lines
438 B
TypeScript
13 lines
438 B
TypeScript
import type { LinkedItemCardProps } from './CardTypes'
|
|
import { LibraryGridCard } from './LibraryGridCard'
|
|
import { LibraryListCard } from './LibraryListCard'
|
|
|
|
|
|
// TODO: Add something for the loading view if we are loading.
|
|
export function LinkedItemCard(props: LinkedItemCardProps): JSX.Element {
|
|
if (props.layout == 'LIST_LAYOUT') {
|
|
return <LibraryListCard {...props} />
|
|
} else {
|
|
return <LibraryGridCard {...props} />
|
|
}
|
|
}
|