import { Text } from "@prismicio/editor-ui"; import clsx from "clsx"; import type { CSSProperties, FC, PropsWithChildren, ReactNode } from "react"; import styles from "./List.module.css"; type ListProps = PropsWithChildren<{ border?: boolean; style?: CSSProperties; }>; export const List: FC = (props) => { const { border = true, ...otherProps } = props; return (
); }; type ListHeaderProps = PropsWithChildren<{ actions?: ReactNode; toggle?: ReactNode; }>; export const ListHeader: FC = ({ actions, children, toggle, ...otherProps }) => (
{children} {toggle} {Boolean(actions) ? (
{actions}
) : null}
); export const ListItem: FC = (props) => (
);