Files
react-native/local-cli/server/middleware/heapCapture/src/ExpanderConfiguration.jsx
T
Charles Dick 48d3cd7d26 Pull aggrow from facebookincubator/tracery-prerelease
Reviewed By: bnham

Differential Revision: D4250937

fbshipit-source-id: b5f2cfdeb06c04399670e463b8b2498e2fe0074b
2016-11-30 12:58:35 -08:00

30 lines
606 B
React

// @flow
import React from 'react';
import AggrowExpander from './AggrowExpander';
import Draggable from './Draggable';
type Props = {
expander: AggrowExpander;
id: number;
}
export default function ExpanderConfiguration(props: Props): React.Element<*> {
const expander = props.expander;
const id = props.id;
return (
<Draggable id={`expander:add:${id}`}>
<div
style={{
width: 'auto',
height: '26px',
border: '1px solid darkGray',
margin: '2px',
}}>
{expander.getExpanderName(id)}
</div>
</Draggable>
);
}