import { observer } from "mobx-react-lite"; import styled from "styled-components"; import { Text } from "preact-i18n"; import { useApplicationState } from "../../../mobx/State"; import darkSVG from "./dark.svg"; import lightSVG from "./light.svg"; const List = styled.div` gap: 8px; display: flex; width: 100%; > div { min-width: 0; display: flex; flex-direction: column; } img { cursor: pointer; border-radius: var(--border-radius); transition: border 0.3s; border: 3px solid transparent; width: 100%; &[data-active="true"] { cursor: default; border: 3px solid var(--accent); &:hover { border: 3px solid var(--accent); } } &:hover { border: 3px solid var(--tertiary-background); } } `; interface Props { value?: "light" | "dark"; setValue: (base: "light" | "dark") => void; } export function ThemeBaseSelector({ value, setValue }: Props) { return ( <>