0.0.57 • Published 1 month ago

cdl-ruby-chat v0.0.57

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

CDL ruby chat

Description

Chat component for the Ruby chatbot.

Usage

First, you need to install the @tanstack/react-query package:

npm install @tanstack/react-query

Then, wrap your app with the QueryClientProvider and pass it a QueryClient instance:

import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

const queryClient = new QueryClient();

export default function App() {
  return (
    <QueryClientProvider client={queryClient}>
      <YourApp />
    </QueryClientProvider>
  );
}

Finally, you can use the component anywhere in your app:

import Chat from "cdl-ruby-chat";

export default function YourApp() {
  return <Chat />;
}

Props

  • user: Currently logged in user. If the user is not logged in, you will only be able to send 5 messages per day.
  • loginUser: A function that receives data that has the user object as well as the accessToken and sets them inside localStorage.
0.0.54

1 month ago

0.0.55

1 month ago

0.0.56

1 month ago

0.0.57

1 month ago

0.0.52

2 months ago

0.0.53

2 months ago

0.0.51

2 months ago

0.0.47

2 months ago

0.0.50

2 months ago

0.0.49

2 months ago

0.0.46

2 months ago

0.0.45

2 months ago

0.0.42

3 months ago

0.0.43

3 months ago

0.0.44

3 months ago

0.0.41

3 months ago

0.0.40

3 months ago

0.0.39

4 months ago

0.0.38

4 months ago

0.0.37

4 months ago

0.0.35

4 months ago

0.0.36

4 months ago

0.0.33

4 months ago

0.0.34

4 months ago

0.0.30

4 months ago

0.0.32

4 months ago

0.0.28

4 months ago

0.0.29

4 months ago

0.0.26

5 months ago

0.0.27

5 months ago

0.0.25

5 months ago

0.0.24

5 months ago

0.0.23

6 months ago

0.0.22

6 months ago

0.0.21

6 months ago

0.0.20

6 months ago

0.0.19

6 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago