otterscan/src/components/InfoRow.tsx
2021-07-28 19:00:50 -03:00

15 lines
344 B
TypeScript

import React from "react";
type InfoRowProps = React.PropsWithChildren<{
title: React.ReactNode;
}>;
const InfoRow: React.FC<InfoRowProps> = ({ title, children }) => (
<div className="grid grid-cols-4 py-4 text-sm">
<div>{title}:</div>
<div className="col-span-3">{children}</div>
</div>
);
export default React.memo(InfoRow);