import React, { Component } from "react";

import { DeviceSizeListener, DeviceSwitch } from "../../src";

const BREAKPOINT = "min-width: 600px";

const example = () => (
  <DeviceSizeListener breakpoint={BREAKPOINT}>
    <DeviceSwitch
      mobileRender="Mobile!"
      desktopRender="Not a Mobile!"
     />
  </DeviceSizeListener>
);

export default example;
