import { Meta , Story } from "@storybook/react" ; import React from "react" ; import { SquareButton } from "../SquareButton" ; import { Tooltip , TooltipProps } from "./Tooltip" ; const props = { title : "Tooltip" , children : < SquareButton > Hover < /SquareButton> } ; export const Info = ( ) => < Tooltip variant = "info" { ... props } />; export const Success = ( ) => < Tooltip variant = "success" { ... props } />; export const Error = ( ) => < Tooltip variant = "error" { ... props } />; export const Warning = ( ) => < Tooltip variant = "warning" { ... props } />; export default { title : "Tooltip" } as Meta ;