import React from 'react' import { type Meta } from '@storybook/react-vite' import { statColors } from '../../services/GraphHelperServiceTyped' import { DocsTemplate } from '../../../.storybook' export const Example = (): React.JSX.Element => { const result = statColors() return ( <>
{JSON.stringify(result, null, 2)}
>
)
}
Example.storyName = 'statColors'
export default {
title: 'Helper Functions/statColors',
component: Example,
parameters: {
viewMode: 'docs',
previewTabs: {
canvas: { hidden: true },
},
docs: {
page: () => (
<>
statColors is used to retrieve predefined color
mappings for graph statuses like success, error, and standard.
,
Returns an object with three properties:
success: The color for success status (green).
error: The color for error status (red).
standard: The color for standard status
(lavender).