```ts // Button.stories.ts|tsx import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Button } from './Button'; //👇 Some function to demonstrate the behavior const someFunction = (someValue: String) => { return `i am a ${someValue}`; }; export default { /* 👇 The title prop is optional. * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading * to learn how to generate automatic titles */ title: 'Button', component: Button, //👇 Creates specific argTypes argTypes: { backgroundColor: { control: 'color' }, }, } as ComponentMeta; export const ExampleStory: ComponentStory = (args) => { //👇 Destructure the label from the args object const { label } = args; //👇 Assigns the function result to a variable and pass it as a prop into the component const functionResult = someFunction(label); return