/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { ActionButton, DefaultButton, IconButton } from '@fluentui/react' import { memo, useMemo } from 'react' import type { ActionButtonProps } from './Action.types.js' export const Action: React.FC = memo(function MaybeButton({ onClick, type, ...props }) { const Button = useMemo(() => getButtonType(type), [type]) return onClick ?