mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-08 08:28:54 -05:00
* 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
28 lines
669 B
TypeScript
28 lines
669 B
TypeScript
import React from 'react';
|
|
import { MediaListRow } from './MediaListRow';
|
|
import './MediaListWrapper.scss';
|
|
|
|
interface MediaListWrapperProps {
|
|
title?: string;
|
|
viewAllLink?: string;
|
|
viewAllText?: string;
|
|
className?: string;
|
|
style?: { [key: string]: any };
|
|
children?: any;
|
|
}
|
|
|
|
export const MediaListWrapper: React.FC<MediaListWrapperProps> = ({
|
|
title,
|
|
viewAllLink,
|
|
viewAllText,
|
|
className,
|
|
style,
|
|
children,
|
|
}) => (
|
|
<div className={(className ? className + ' ' : '') + 'media-list-wrapper'} style={style}>
|
|
<MediaListRow title={title} viewAllLink={viewAllLink} viewAllText={viewAllText}>
|
|
{children || null}
|
|
</MediaListRow>
|
|
</div>
|
|
);
|