import { Meta, StoryObj } from "@storybook/react" import React from "react" import { TestGridContainer } from "../../../tests/TestGridContainer" import { breakpoints } from "../../constants/breakpoints" import { Media } from "./index" type Story = StoryObj const meta: Meta = { title: "Design System/Media", component: Media, } export default meta export const Base: Story = { args: { greaterThanOrEqual: "sm", children:
Hello world
, }, } export const AllVariants: Story = { render: function Render() { return ( {(Object.keys(breakpoints) as (keyof typeof breakpoints)[]).map(bp => (
Visible at greaterThanOrEqual {breakpoints[bp]}px.
))}
) }, }