import type { Meta, StoryObj } from '@storybook/react-vite';
import argTypes from '../../../.storybook/sgdsArgTypes';
import SearchResult from './SearchResult';
import Metadata from '../PageMetadata';
// @ts-expect-error no types
import coo from '../../../static/images/highland-cow.jpg';
const meta = {
title: 'Components/Search results/Result',
component: SearchResult,
decorators: [
Story => (
)
],
argTypes: {
children: argTypes.children(),
tagName: {
control: { type: 'select' },
description: 'HTML tag name to use for the search result',
options: ['li', 'div'],
type: 'string'
}
},
args: {
title: 'Greenhouse gas statistics 1990-2022',
href: '#foo'
}
} satisfies Meta;
export default meta;
type Story = StoryObj;
export const Default: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
)
};
export const WithMetadata: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
Statistics
18 June 2024
)
};
export const Context: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
Environment statistics
Energy statistics
)
};
export const Media: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
)
};
export const Promoted: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
)
};
export const KitchenSink: Story = {
render: (args) => (
Official statistics showing emissions of greenhouse gases in Scotland over the period 1990 to 2022.
Statistics
18 June 2024
Environment statistics
Energy statistics
)
};