/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { StoryObj } from '@storybook/vue3';
import MkAnalogClock from './MkAnalogClock.vue';
import isChromatic from 'chromatic';
export const Default = {
render(args) {
return {
components: {
MkAnalogClock,
},
setup() {
args,
};
computed: {
props() {
...this.args,
template: '<MkAnalogClock v-bind="props" />',
args: {
now: isChromatic() ? () => new Date('2023-01-01T10:10:30') : undefined,
decorators: [
() => ({
template: '<div style="container-type:inline-size;height:100%"><div style="height:100cqmin;margin:auto;width:100cqmin"><story/></div></div>',
}),
],
parameters: {
layout: 'fullscreen',
} satisfies StoryObj<typeof MkAnalogClock>;