29 lines
931 B
JavaScript
29 lines
931 B
JavaScript
// @flow
|
|
|
|
import { SET_TILE_VIEW_DIMENSIONS } from './actionTypes';
|
|
|
|
export * from './actions.any';
|
|
|
|
/**
|
|
* Sets the dimensions of the tile view grid. The action is only partially implemented on native as not all
|
|
* of the values are currently used. Check the description of {@link SET_TILE_VIEW_DIMENSIONS} for the full set
|
|
* of properties.
|
|
*
|
|
* @param {Object} dimensions - The tile view dimensions.
|
|
* @param {Object} thumbnailSize - The size of an individual video thumbnail.
|
|
* @param {number} thumbnailSize.height - The height of an individual video thumbnail.
|
|
* @param {number} thumbnailSize.width - The width of an individual video thumbnail.
|
|
* @returns {{
|
|
* type: SET_TILE_VIEW_DIMENSIONS,
|
|
* dimensions: Object
|
|
* }}
|
|
*/
|
|
export function setTileViewDimensions({ thumbnailSize }: Object) {
|
|
return {
|
|
type: SET_TILE_VIEW_DIMENSIONS,
|
|
dimensions: {
|
|
thumbnailSize
|
|
}
|
|
};
|
|
}
|