import classNames from 'classnames'; import React, { Fragment, useId } from 'react'; export type InstructionTab = { id: string | number; label: React.ReactNode; content: React.ReactNode; }; export interface InstructionsTabsProps { tabs: InstructionTab[]; limitHeight?: boolean; } export function InstructionsTabs({ limitHeight = false, tabs }: InstructionsTabsProps) { const id = useId(); return (
{tabs.map(({ id: _tabId, label, content }, index) => (
{content}
))}
); }