{"size": 229, "ext": "js", "max_stars_repo_path": "src/components/Utils_SFX/Utils_SFX.js", "max_stars_repo_name": "broberts2/arclight-react", "max_stars_repo_stars_event_min_datetime": "2020-08-17T01:52:28.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-17T01:52:28.000Z", "max_issues_repo_path": "src/components/Utils_SFX/Utils_SFX.js", "max_issues_repo_name": "broberts2/arclight-react", "max_issues_repo_issues_event_min_datetime": "2021-01-23T08:01:41.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-23T08:01:41.000Z", "max_forks_repo_path": "src/components/Utils_SFX/Utils_SFX.js", "max_forks_repo_name": "broberts2/arclight-react", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 16.3571428571, "max_line_length": 44, "alphanum_fraction": 0.5895196507}
import React from "react";

const SFX_INDEX = {
  ding: require("./sfx/ding.wav"),
  drop: require("./sfx/drop.wav"),
};

export default {
  play: (sound) => {
    const SFX = new Audio(SFX_INDEX[sound]);
    SFX.play();
  },
};
