import { estilosGlobales } from "./Estilos"; import { StyleSheet, css } from "aphrodite"; import { numWallpaper, setNumWallpaper } from "./Store"; const totalWallpapers = 17; function CambiadorImg() { const e = StyleSheet.create({ contCambiador: { userSelect: "none" }, boton: { cursor: "pointer", textDecoration: "underline", "::before": { fontSize: "1rem", transform: "translateY(0.2rem)" } }, botonDesactivado: { cursor: "not-allowed", textDecoration: "none" }, botonLeft: { paddingRight: "0.5rem", marginRight: "0.25rem" }, botonRight: { paddingLeft: "0.5rem", marginRight: "0.25rem" } }); const retrocederWallpaper = () => { const num = numWallpaper(); if (num > 0) { setNumWallpaper(num - 1); localStorage.setItem("num-img", (num - 1).toString()); } }; const avanzarWallpaper = () => { const num = numWallpaper(); if (num < totalWallpapers) { setNumWallpaper(num + 1); localStorage.setItem("num-img", (num + 1).toString()); } }; const clasesLeft = () => numWallpaper() <= 0 ? "ph-arrow-left " + css(e.boton, e.botonDesactivado, e.botonLeft) : "ph-arrow-left " + css(e.boton, e.botonLeft); const clasesRight = () => numWallpaper() >= totalWallpapers ? "ph-arrow-right " + css(e.boton, e.botonDesactivado, e.botonRight) : "ph-arrow-right " + css(e.boton, e.botonRight); return
Img. {numWallpaper() + 1}
; } export function BarraSuperior() { const estilos = StyleSheet.create({ tituloPrincipal: { fontWeight: "bold", fontFamily: "'SF Pro Display', sans-serif" } }); return
Horarios Unsa GitHub 2021-A IngenierĂ­a de Sistemas
; }