Skip to content

Instantly share code, notes, and snippets.

@bietkul
Last active February 14, 2019 22:09
Show Gist options
  • Save bietkul/1fce29142cd8fc8de19ef4dc38c9bca6 to your computer and use it in GitHub Desktop.
Save bietkul/1fce29142cd8fc8de19ef4dc38c9bca6 to your computer and use it in GitHub Desktop.
ReactiveSearch Integration in Movies Store
import Head from 'next/head';
import React from 'react';
import { css } from '@emotion/core';
import {
node, string, oneOfType, object
} from 'prop-types';
import { ReactiveBase } from '@appbaseio/reactivesearch';
import { Layout } from 'antd';
const layoutCls = css`
background: #152530;
color: #fff;
font-family: Lato;
`;
const Container = ({ children, title = "Movies Store" }) => (
<Layout css={layoutCls} className="layout">
<Head>
<title>{title}</title>
</Head>
<ReactiveBase
app="YOUR_APP_NAME" // Your app name for e.g movies-store-app
credentials="YOUR_APP_CREDENTIALS" // API credentials
theme={{
typography: {
fontFamily: "Lato"
}
}}
analytics
>
{children}
</ReactiveBase>
</Layout>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment