mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-26 04:11:24 +00:00
23 lines
535 B
TypeScript
23 lines
535 B
TypeScript
import { PrimaryButton } from "@fluentui/react";
|
|
import React from "react";
|
|
|
|
export interface PanelFooterProps {
|
|
buttonLabel: string;
|
|
isButtonDisabled?: boolean;
|
|
}
|
|
|
|
export const PanelFooterComponent: React.FunctionComponent<PanelFooterProps> = ({
|
|
buttonLabel,
|
|
isButtonDisabled,
|
|
}: PanelFooterProps): JSX.Element => (
|
|
<div className="panelFooter">
|
|
<PrimaryButton
|
|
type="submit"
|
|
id="sidePanelOkButton"
|
|
text={buttonLabel}
|
|
ariaLabel={buttonLabel}
|
|
disabled={!!isButtonDisabled}
|
|
/>
|
|
</div>
|
|
);
|