/** * @file * @copyright 2021 Aleksej Komarov * @license MIT */ import { classes } from 'common/react'; import { RefObject } from 'inferno'; import { Flex, FlexItemProps, FlexProps } from './Flex'; interface StackProps extends FlexProps { vertical?: boolean; fill?: boolean; } export const Stack = (props: StackProps) => { const { className, vertical, fill, ...rest } = props; return ( ); }; type StackItemProps = FlexProps & { innerRef?: RefObject; }; const StackItem = (props: StackItemProps) => { const { className, innerRef, ...rest } = props; return ; }; Stack.Item = StackItem; interface StackDividerProps extends FlexItemProps { hidden?: boolean; } const StackDivider = (props: StackDividerProps) => { const { className, hidden, ...rest } = props; return (