// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { ChevronRight } from '@material-ui/icons'; import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles'; import { ArvadosTheme } from 'common/custom-theme'; type CssRules = 'root' | 'default' | 'expanded'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { display: 'flex', alignItems: 'center', justifyContent: 'center', width: '24px', height: '24px', cursor: 'pointer', }, default: { transition: 'all 0.1s ease', transform: 'rotate(0deg)', }, expanded: { transition: 'all 0.1s ease', transform: 'rotate(90deg)', }, }); export interface ExpandChevronRightDataProps { expanded: boolean; } type ExpandChevronRightProps = ExpandChevronRightDataProps & WithStyles; export const ExpandChevronRight = withStyles(styles)( class extends React.Component { render() { const { classes, expanded } = this.props; return (
); } } );