# @comparaonline/ui-offer-empty

> ### Installation

Latest version **5.4.4** (published 2019-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comparaonline/ui-offer-empty
pnpm add @comparaonline/ui-offer-empty
yarn add @comparaonline/ui-offer-empty
bun add @comparaonline/ui-offer-empty
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.4.4 |
| Published | 2019-10-24 |
| First published | 2019-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ComparaOnline.com |
| Maintainers | cnovoab, comparaonline-dev, comparaonlineprivate, emartini, fmartinez, gnza, javierlara1989, jflobos, jokude, juorderg, lisandrop, matotias, mnegrete, smurua, suarezcumare, warseph |

## Links

- npm: https://www.npmjs.com/package/@comparaonline/ui-offer-empty
- npm.io page: https://npm.io/package/@comparaonline/ui-offer-empty

## Recent versions

- 5.4.4 (latest) — 2019-10-24
- 5.4.3 — 2019-10-11
- 4.9.1 — 2019-06-17
- 4.9.0 — 2019-06-11
- 4.8.5 — 2019-05-16
- 4.8.4 — 2019-05-15
- 4.8.2 — 2019-05-15
- 4.7.2 — 2019-05-08
- 4.7.1 — 2019-05-07
- 4.7.0 — 2019-05-07
- 4.3.7 — 2019-04-25
- 4.3.6 — 2019-04-25
- 4.2.3 — 2019-03-26

## README

# ui-offer-empty

### Installation

```
yarn add @comparaonline/ui-offer-empty
```

##Usage

```typescript
import { Empty } from '@comparaonline/ui-offer-empty';
```

| Prop    | required |                                                                                                                     type | Description |
| ------- | :------: | -----------------------------------------------------------------------------------------------------------------------: | ----------: |
| `texts` | `false`  | [ITextsProps](https://github.com/comparaonline/offers-ui/tree/master/packages/filters/ui-offer-empty/src/types.ts) [...] | Text Object |

### Implementation

```typescript
import React, { useState } from 'react';
import { Empty } from '@comparaonline/ui-offer-empty';

const Results = () => {
    const [results, setResults] = useState([]);

    if (!Boolean(results.length)) {
        return <Empty texts={{ paragraph: 'My first paragraph', phone: 'some phone if exists, +5695674321', resume: 'a short description for phone maybe', whatsapp: { url: 'whatsapp url', message: 'the whatsapp message', description: 'the short description for whatsapp' } }} />
    }

    render() {
        return (
            <Grid>
                {results.map(result => <Result result={result} />)}
            </Grid>
        );
    }
}
```

### Types

```typescript
import { IEmptyProps, ITextsProps } from '@comparaonline/ui-offer-empty';

interface MyOwnProps {
  mytexts: ITextsProps;
}

interface MyOwnExtendedProps extends IEmptyProps {
  onemore: boolean;
}
```

## Happy coding :sunglasses:

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