'use strict';
const React = require('react');
const {render, Box, Text, useFocus} = require('../..');
const Focus = () => (
Press Tab to focus next element, Shift+Tab to focus previous element,
Esc to reset focus.
);
const Item = ({label}) => {
const {isFocused} = useFocus();
return (
{label} {isFocused && (focused)}
);
};
render();