mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
aa6520daac
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
22 lines
626 B
TypeScript
22 lines
626 B
TypeScript
import React from 'react';
|
|
import { MediaListHeader } from './MediaListHeader';
|
|
|
|
interface MediaListRowProps {
|
|
title?: string;
|
|
viewAllLink?: string;
|
|
viewAllText?: string;
|
|
className?: string;
|
|
style?: { [key: string]: any };
|
|
}
|
|
|
|
export const MediaListRow: React.FC<MediaListRowProps> = (props) => {
|
|
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>
|
|
);
|
|
};
|