otterscan/src/components/InfoRow.tsx

15 lines
344 B
TypeScript
Raw Normal View History

2021-07-14 19:17:27 +00:00
import React from "react";
type InfoRowProps = React.PropsWithChildren<{
title: React.ReactNode;
2021-07-14 19:17:27 +00:00
}>;
const InfoRow: React.FC<InfoRowProps> = ({ title, children }) => (
2021-07-28 22:00:50 +00:00
<div className="grid grid-cols-4 py-4 text-sm">
2021-07-14 19:17:27 +00:00
<div>{title}:</div>
<div className="col-span-3">{children}</div>
</div>
);
export default React.memo(InfoRow);