mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-14 20:11:48 -05:00
22 lines
412 B
JavaScript
22 lines
412 B
JavaScript
import 'styled-components/macro';
|
|
import React from 'react';
|
|
import { Tooltip } from '@patternfly/react-core';
|
|
|
|
export default function ActionItem({ column, tooltip, visible, children }) {
|
|
if (!visible) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div
|
|
css={`
|
|
grid-column: ${column};
|
|
`}
|
|
>
|
|
<Tooltip content={tooltip} position="top">
|
|
{children}
|
|
</Tooltip>
|
|
</div>
|
|
);
|
|
}
|