import * as React from "react"; import { PresetSelectorProps } from "./types"; import Select from "@material-ui/core/Select"; import MenuItem from "@material-ui/core/MenuItem"; import InputLabel from "@material-ui/core/InputLabel"; import FormControl from "@material-ui/core/FormControl"; import styles from "@sc/modules/v2/CRUD/FormBuilder/styles"; import theme from "@sc/plugins/misc/v2/blocks/weblayouts/theme"; /** * A component for collecting the page/url the user wants to link to */ const PresetSelector: React.FC = ({ onChange = () => null, onBlur = () => null, label, value, data = [ { label: "Testing Content!", type: "content", image: theme.logoIcon }, { label: "Testing Launch", type: "launch", image: theme.logoIcon }, ], }) => { return (
{label || "Select a Preset..."}
); }; export default PresetSelector;