mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
48d3cd7d26
Reviewed By: bnham Differential Revision: D4250937 fbshipit-source-id: b5f2cfdeb06c04399670e463b8b2498e2fe0074b
30 lines
606 B
React
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>
|
|
);
|
|
}
|