You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wg-access-server/website/src/components/TabPanel.tsx

17 lines
304 B
TypeScript

import React from 'react';
interface Props {
for: any;
value: any;
}
export class TabPanel extends React.Component<Props> {
render() {
return (
<div style={{ padding: '1.5rem 1rem' }} hidden={this.props.for !== this.props.value}>
{this.props.children}
</div>
);
}
}