import styled from "styled-components"; import { Text } from "preact-i18n"; import darkSVG from "./dark.svg"; import lightSVG from "./light.svg"; const List = styled.div` gap: 8px; width: 100%; display: flex; margin-bottom: 15px; > 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 ( <>