import { useStore } from '@nanostores/react' import React from 'react' import styled from 'styled-components' import { EXT_NAME } from '../../utils/constants' import logo from '../assets/logo.svg' import { headerActionsStore } from '../../stores/headerActions' import { BaseProps } from '../types' import { Button } from './Button' const Header: React.FC = ({ className }) => { const actions = useStore(headerActionsStore) return (
{EXT_NAME}
{actions.map((a) => ( ))}
) } export default styled(Header)` display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; box-shadow: var(--shadow); .text-holder { display: flex; align-items: center; height: 1.9rem; } img { height: 1.5rem; width: 1.5rem; margin-right: 0.5rem; } `