import { Button, Tooltip } from "@digdir/designsystemet-react"; import type { ReactNode } from "react"; interface Props { icon: ReactNode; label: string; onClick: () => void; disabled?: boolean; isSmall: boolean; } /** Renders a labelled button on large screens and a tooltipped icon button on small ones. */ export function ResponsiveButton({ icon, label, onClick, disabled, isSmall }: Props) { if (isSmall) { return ( ); } return ( ); }