mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
8 lines
274 B
TypeScript
8 lines
274 B
TypeScript
import React from 'react';
|
|
import classnames from 'classnames';
|
|
|
|
export const Tooltip = ({ children, position = 'bottom' }: { children: string, position?: string }) => (
|
|
<div className={classnames('panel-tooltip', { top: position === 'top' })}>
|
|
{children}
|
|
</div>
|
|
);
|