Created
December 29, 2024 17:05
-
-
Save night-fury-rider/af0724cdf13078067d49dc1832ff4a7d to your computer and use it in GitHub Desktop.
Interface for React Component Props
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
interface iPieChart { | |
data: any[]; | |
pieContainerCustomStyles?: React.CSSProperties; | |
} | |
const PieChart = ({ | |
data, | |
pieContainerCustomStyles, | |
}: iPieChart) => { | |
return ( | |
<div | |
style={pieContainerCustomStyles} | |
> | |
{data.length} | |
</div> | |
}; | |
export default PieChart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment