import React from 'react'
import { type Meta } from '@storybook/react-vite'
import { DocsTemplate } from '../../../.storybook'
import { initialTimeframe } from '../../services/TimeframeServiceTyped'
export const InitialTimeframeExample = (): React.JSX.Element => {
return (
Initial Timeframe:
{JSON.stringify(initialTimeframe, null, 2)}
)
}
InitialTimeframeExample.storyName = 'INITIAL_TIMEFRAME'
export default {
title: 'Helper Variables/INITIAL_TIMEFRAME',
component: InitialTimeframeExample,
parameters: {
viewMode: 'docs',
previewTabs: {
canvas: { hidden: true },
},
docs: {
page: () => (
<>
Core features:
- Represents a default timeframe of 30 days
- Used to set initial date ranges in components
,
Structure and properties:
-
type: Always "historical"
-
display: UI label ("30D")
-
value: Numeric amount (30)
-
timeValue: Time unit ("day")
,
Common use cases:
- Setting default time periods for components
- Ensuring consistent initial data views
,
]}
/>
>
),
source: {
code: false,
},
},
},
} as Meta