import { ComponentStory, ComponentMeta } from '@storybook/react'; import Card from './Card'; import React, { useState } from 'react'; import getModuleAnimation from './Animations/animations'; import { Icon, iconTypes } from '../Icon'; import colors from '../../styles/colors'; import { Button } from '../Button'; /** * To-do: * find correct way of using useArgs with react testing */ export default { title: '4.UI/Card', component: Card, } as ComponentMeta; const Template: ComponentStory = (args) => { const [isSelected, setIsSelected] = useState(false); return (
); }; export const Regular = Template.bind({}); Regular.args = { tooltipText: ( 'Lorem Ipsum Dole met sai souni lokomit anici trenicid' ), children: [
{getModuleAnimation(undefined)}
], title: 'dApp', description: 'Click to create a dApp', onClick: () => console.log('clicked'), }; export const RegularSelected = Template.bind({}); RegularSelected.args = { tooltipText: 'Lorem Ipsum Dole met sai souni lokomit anici trenicid', children: [
{getModuleAnimation(undefined)}
], title: 'dApp', isSelected: true, description: 'Click to create a dApp', }; export const NftMarketplace = Template.bind({}); NftMarketplace.args = { tooltipText: 'Create and earn money from your own NFT Marketplace', children: [
{getModuleAnimation('NFT Marketplace')}
], title: 'NFT Marketplace', description: 'Create your own NFT Marketplace', }; export const Bundle = Template.bind({}); Bundle.args = { tooltipText: 'Coming soon', children: [
{getModuleAnimation('Bundle')}
], title: 'Bundle', }; export const LazyNFT = Template.bind({}); LazyNFT.args = { tooltipText: 'Coming soon', children: [
{getModuleAnimation('Lazy NFT')}
], title: 'Lazy NFT', }; export const Token = Template.bind({}); Token.args = { tooltipText: 'Create your own ERC20 Token', children: [
{getModuleAnimation('Token')}
], title: 'ERC20-Token', description: 'Create your own cryptocurrency / token', }; export const Pack = Template.bind({}); Pack.args = { tooltipText: 'Coming soon', children: [
{getModuleAnimation('Pack')}
], title: 'Lootbox', }; export const NftCollection = Template.bind({}); NftCollection.args = { tooltipText: 'Create your very own NFT Collection', children: [
{getModuleAnimation('NFT Collection')}
], title: 'NFT Collection', description: 'Create and publish your own NFT Collection', }; export const Disabled = Template.bind({}); Disabled.args = { tooltipText: 'Create your very own NFT Collection', children: [
{getModuleAnimation('Lazy NFT')}
], title: 'NFT Collection', isDisabled: true, }; export const ComingSoon = Template.bind({}); ComingSoon.args = { tooltipText: 'Create your very own NFT Collection', children: [
{getModuleAnimation('Lazy NFT')}
], title: 'NFT Collection', description: 'Coming Soon', isDisabled: true, }; export const ProPlan = Template.bind({}); ProPlan.args = { children: [

Pro Plan

$18 per month
Everything in Starter, plus
Servers never Sleep
More requests
Higher limits
Request auto scaling
Email support
, ], };