import { PeriodOfDay } from '@rpg-engine/shared';
import { Meta, Story } from '@storybook/react';
import React from 'react';
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
import {
  IClockWidgetProps,
  TimeWidget,
} from '../../../components/TimeWidget/TimeWidget';

const meta: Meta = {
  title: 'Features/Weather/Time Widget',
  component: TimeWidget,
};

export default meta;

const Template: Story<IClockWidgetProps> = args => (
  <RPGUIRoot>
    <TimeWidget {...args} />
  </RPGUIRoot>
);

export const Default = Template.bind({});
Default.args = {
  TimeClock: '10:00',
  periodOfDay: PeriodOfDay.Morning,
};
