type PageModalButtonWithTypeProps = {
	title: string;
	type: string;
	onClick: () => void;
};

export default function PageModalButtonWithType(
	props: PageModalButtonWithTypeProps
) {
	const { title, type, onClick } = props;

	return (
		<button className="gs-page-modal-button" onClick={ onClick }>
			<span className="gs-page-modal-button__name">{ title }</span>
			{ type && (
				<span className="gs-page-modal-button__type">{ type }</span>
			) }
		</button>
	);
}
