mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
23 lines
660 B
TypeScript
23 lines
660 B
TypeScript
import React from 'react';
|
|
import { MediaListHeader } from './MediaListHeader';
|
|
|
|
interface MediaListRowProps {
|
|
title?: string;
|
|
viewAllLink?: string;
|
|
viewAllText?: string;
|
|
className?: string;
|
|
style?: { [key: string]: any };
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export const MediaListRow: React.FC<MediaListRowProps> = (props:any) => {
|
|
return (
|
|
<div className={(props.className ? props.className + ' ' : '') + 'media-list-row'} style={props.style}>
|
|
{props.title ? (
|
|
<MediaListHeader title={props.title} viewAllLink={props.viewAllLink} viewAllText={props.viewAllText} />
|
|
) : null}
|
|
{props.children || null}
|
|
</div>
|
|
);
|
|
};
|