# joe_keski_basic_app_bar_1

> Basic app bar library for Joe Keski made with create-react-library

Latest version **1.2.9** (published 2023-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install joe_keski_basic_app_bar_1
pnpm add joe_keski_basic_app_bar_1
yarn add joe_keski_basic_app_bar_1
bun add joe_keski_basic_app_bar_1
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.9 |
| Published | 2023-02-23 |
| First published | 2023-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 7 |
| Unpacked size | 113.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Benjamngarcia |
| Maintainers | benjamngarcia, fran-dev |

## Links

- npm: https://www.npmjs.com/package/joe_keski_basic_app_bar_1
- Repository: https://github.com/CodeNation-Studio-Dev/joe_keski_basic_app_bar_1
- Homepage: https://github.com/CodeNation-Studio-Dev/joe_keski_basic_app_bar_1#readme
- Issues: https://github.com/CodeNation-Studio-Dev/joe_keski_basic_app_bar_1/issues
- npm.io page: https://npm.io/package/joe_keski_basic_app_bar_1

## Dependencies (7)

- [next-router](https://npm.io/package/next-router.md) ^1.3.6
- [@mui/material](https://npm.io/package/@mui/material.md) ^5.10.17
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.10.5
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.10.5
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^6.4.5
- [@mui/icons-material](https://npm.io/package/@mui/icons-material.md) ^5.10.16
- [user-context-fran-dev](https://npm.io/package/user-context-fran-dev.md) ^1.2.1

## Recent versions

- 1.2.9 (latest) — 2023-02-23
- 1.2.8 — 2023-02-23
- 1.2.7 — 2023-02-23
- 1.2.5 — 2023-02-23
- 1.2.4 — 2023-02-08
- 1.2.3 — 2023-02-07
- 1.2.2 — 2023-02-05
- 1.2.1 — 2023-02-03
- 1.1.3 — 2023-01-23
- 1.1.2 — 2023-01-11
- 1.1.1 — 2023-01-10
- 1.1.0 — 2023-01-09
- 1.0.0 — 2023-01-09

## README

# joe_keski_basic_app_bar_1

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/joe_keski_basic_app_bar_1.svg)](https://www.npmjs.com/package/joe_keski_basic_app_bar_1) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save joe_keski_basic_app_bar_1
```

## Usage

```jsx
import React from 'react'
import BasicAppBar from 'joe_keski_basic_app_bar_1'

const App = () => {
  // For principal links in appbar
  const navItems = [
    { title: 'Link 1', link: '/link1' },
    { title: 'Link 2', link: '/link2', submenu: true }
  ]
  //For submenu categories
  const categories = [
    {
      id: 1,
      name: 'Categoría Título 1',
      link: '/categoriatitulo1',
      categoriesLinks: [
        { id: 1, name: 'Categoria 1', link: '/categoria1' },
        { id: 2, name: 'Categoria 2', link: '/categoria2' },
        { id: 3, name: 'Categoria 3', link: '/categoria3' }
      ]
    }
  ]

  //For the discount banner
  const [openDiscount, setOpenDiscount] = React.useState(true)
  const [showModal, setShowModal] = React.useState(false)

  const onShowModal = () => setShowModal(true)
  const onCloseModal = () => setShowModal(false)

  return (
    <>
      <BasicAppBar
        navItems={navItems}
        categories={categories}
        openDiscount={openDiscount}
        setOpenDiscount={setOpenDiscount}
        show={showModal}
        onShowModal={onShowModal}
        onCloseModal={onCloseModal}
        //cart products for request cart in API
        cartProducts={cartProducts}
      />
    </>
  )
}
```

## License

MIT © [Benjamngarcia](https://github.com/Benjamngarcia)

---
_Source: https://npm.io/package/joe_keski_basic_app_bar_1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
