import * as React from "react"; import { cx } from "@emotion/css"; import { flex } from "../../shared/styles/styleUtils"; import { ThemeProvider, useTheme } from "@emotion/react"; import { headerBar } from "../style"; import { AppChromeTheme } from "../types"; import { getCSSVarValue } from "../../utilities"; import { themeBgPrimary } from "../../design-tokens/build/js/designTokens"; export const defaultBgColor = getCSSVarValue(themeBgPrimary); export const defaultHeaderPaddingHor = "none"; export const defaultHeaderPaddingVert = "none"; interface HeaderProps { children?: React.ReactNode; /** * Changes the background color for the entire sidebar */ bgColor?: string; } const StyledHeader = ({ children }: HeaderProps) => { const theme: AppChromeTheme = useTheme(); return (