()
| 8 | import Presentation from "~/components/Icons/Presentation" |
| 9 | |
| 10 | const SelectEditor = () => { |
| 11 | const [selectedEditor, setSelectedEditor] = React.useState<DesignType>("GRAPHIC") |
| 12 | const { setEditorType } = useDesignEditorContext() |
| 13 | |
| 14 | return ( |
| 15 | <Block |
| 16 | $style={{ |
| 17 | height: "100vh", |
| 18 | width: "100vw", |
| 19 | background: "#ffffff", |
| 20 | display: "flex", |
| 21 | alignItems: "center", |
| 22 | justifyContent: "center", |
| 23 | }} |
| 24 | > |
| 25 | <Block> |
| 26 | <Block |
| 27 | $style={{ |
| 28 | display: "flex", |
| 29 | gap: "2rem", |
| 30 | }} |
| 31 | > |
| 32 | <Block |
| 33 | onClick={() => setSelectedEditor("GRAPHIC")} |
| 34 | $style={{ |
| 35 | height: "180px", |
| 36 | width: "180px", |
| 37 | background: selectedEditor === "GRAPHIC" ? "#000000" : "rgb(231, 236, 239)", |
| 38 | color: selectedEditor === "GRAPHIC" ? "#ffffff" : "#333333", |
| 39 | display: "flex", |
| 40 | alignItems: "center", |
| 41 | justifyContent: "center", |
| 42 | cursor: "pointer", |
| 43 | flexDirection: "column", |
| 44 | gap: "0.5rem", |
| 45 | }} |
| 46 | > |
| 47 | <Images size={34} /> |
| 48 | <Block>Graphic</Block> |
| 49 | </Block> |
| 50 | <Block |
| 51 | onClick={() => setSelectedEditor("PRESENTATION")} |
| 52 | $style={{ |
| 53 | height: "180px", |
| 54 | width: "180px", |
| 55 | background: selectedEditor === "PRESENTATION" ? "#000000" : "rgb(231, 236, 239)", |
| 56 | color: selectedEditor === "PRESENTATION" ? "#ffffff" : "#333333", |
| 57 | display: "flex", |
| 58 | alignItems: "center", |
| 59 | justifyContent: "center", |
| 60 | cursor: "pointer", |
| 61 | flexDirection: "column", |
| 62 | gap: "0.5rem", |
| 63 | }} |
| 64 | > |
| 65 | <Presentation size={36} /> |
| 66 | <Block>Presentation</Block> |
| 67 | </Block> |
nothing calls this directly
no test coverage detected