// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; import type { Meta } from '@storybook/react'; import type { PropsType } from './Tooltip'; import { Tooltip, TooltipPlacement } from './Tooltip'; import { Theme } from '../util/theme'; export default { title: 'Components/Tooltip', argTypes: { content: { control: { type: 'text' } }, direction: { control: { type: 'select' }, options: Object.values(TooltipPlacement), }, sticky: { control: { type: 'boolean' } }, theme: { control: { type: 'select' }, options: Object.keys(Theme), mappings: Theme, }, }, args: { content: 'Hello World', direction: TooltipPlacement.Top, sticky: false, }, decorators: [ (Story): JSX.Element => { return (