import { type RuleSet, css } from "styled-components"; import { WIN_TASKBAR_HEIGHT } from "@/utils/constants"; const TaskbarPanel = ( height: number, width: number, left = 0, hasBorder = false ): RuleSet => css` background-color: hsla(0, 0%, 13%, 95%); border: ${hasBorder ? "1px solid hsla(0, 0%, 25%, 75%)" : "none"}; border-bottom-width: 0; bottom: ${WIN_TASKBAR_HEIGHT}px; box-shadow: 3px 0 10px 3px hsla(0, 0%, 10%, 50%); contain: strict; display: flex; height: 100%; left: ${left}px; max-height: ${height}px; max-width: ${width}px; position: absolute; width: calc(100% - ${left}px); z-index: 10000; @supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) { background-color: hsla(0, 0%, 13%, 70%); } `; export default TaskbarPanel;