import { Home as HomeIcon } from "@styled-icons/boxicons-solid"; import { Link } from "react-router-dom"; import styled, { css } from "styled-components"; import styles from "./Home.module.scss"; import { Text } from "preact-i18n"; import { useState } from "preact/hooks"; import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice"; import { dispatch, getState } from "../../redux"; import Emoji from "../../components/common/Emoji"; import Tooltip from "../../components/common/Tooltip"; import Header from "../../components/ui/Header"; import CategoryButton from "../../components/ui/fluent/CategoryButton"; const CHANNELS_SIDEBAR_KEY = "sidebar_channels"; const IconConainer = styled.div` cursor: pointer; color: var(--secondary-foreground); ${!isTouchscreenDevice && css` &:hover { color: var(--foreground); } `} `; export default function Home() { const [showChannels, setChannels] = useState( getState().sectionToggle[CHANNELS_SIDEBAR_KEY] ?? true, ); const toggleChannelSidebar = () => { if (isTouchscreenDevice) { return; } setChannels(!showChannels); if (showChannels) { dispatch({ type: "SECTION_TOGGLE_SET", id: CHANNELS_SIDEBAR_KEY, state: false, }); } else { dispatch({ type: "SECTION_TOGGLE_UNSET", id: CHANNELS_SIDEBAR_KEY, }); } }; return (


}> Join testers server }> Donate to Revolt }> Give feedback }> Find Servers & Bots }> Settings
); }