{"size": 703, "ext": "js", "max_stars_repo_path": "react/features/shared-video/actions.js", "max_stars_repo_name": "YYZZT/-", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "react/features/shared-video/actions.js", "max_issues_repo_name": "YYZZT/-", "max_issues_repo_issues_event_min_datetime": "2021-04-16T20:36:32.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-10T21:39:21.000Z", "max_forks_repo_path": "react/features/shared-video/actions.js", "max_forks_repo_name": "YYZZT/FUYY", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 21.96875, "max_line_length": 78, "alphanum_fraction": 0.6301564723}
import { SET_SHARED_VIDEO_STATUS, TOGGLE_SHARED_VIDEO } from './actionTypes';

/**
 * Updates the current known status of the shared YouTube video.
 *
 * @param {string} status - The current status of the YouTube video being
 * shared.
 * @returns {{
 *     type: SET_SHARED_VIDEO_STATUS,
 *     status: string
 * }}
 */
export function setSharedVideoStatus(status) {
    return {
        type: SET_SHARED_VIDEO_STATUS,
        status
    };
}

/**
 * Starts the flow for starting or stopping a shared YouTube video.
 *
 * @returns {{
 *     type: TOGGLE_SHARED_VIDEO
 * }}
 */
export function toggleSharedVideo() {
    return {
        type: TOGGLE_SHARED_VIDEO
    };
}
