import * as React from "react"; import * as CompileConfig from "../../../config.json"; import { Category } from "../../types"; import CategorySkipOptionsComponent from "./CategorySkipOptionsComponent"; export interface CategoryChooserProps { } export interface CategoryChooserState { } class CategoryChooserComponent extends React.Component { constructor(props: CategoryChooserProps) { super(props); // Setup state this.state = { } } render(): React.ReactElement { return ( {/* Headers */} {this.getCategorySkipOptions()}
{chrome.i18n.getMessage("category")} {chrome.i18n.getMessage("skipOption")} {chrome.i18n.getMessage("seekBarColor")} {chrome.i18n.getMessage("previewColor")}
); } getCategorySkipOptions(): JSX.Element[] { const elements: JSX.Element[] = []; for (const category of CompileConfig.categoryList) { elements.push( ); } return elements; } } export default CategoryChooserComponent;