import type { Meta, StoryFn } from '@storybook/react-vite';
import { DuotoneSwatch } from '..';

const meta: Meta< typeof DuotoneSwatch > = {
	id: 'components-duotoneswatch',
	title: 'Components/@wordpress-components/DuotoneSwatch',
	component: DuotoneSwatch,
	parameters: {
		controls: { expanded: true },
		docs: { canvas: { sourceState: 'shown' } },
		componentStatus: {
			status: 'recommended',
			whereUsed: 'editor',
		},
	},
};
export default meta;

const Template: StoryFn< typeof DuotoneSwatch > = ( args ) => {
	return <DuotoneSwatch { ...args } />;
};

export const Default = Template.bind( {} );
Default.args = {
	values: [ '#000', '#fff' ],
};

export const SingleColor = Template.bind( {} );
SingleColor.args = {
	values: [ 'pink' ],
};

export const Null = Template.bind( {} );
Null.args = {
	values: null,
};
