Interface of a status option

Viewed 10

I'm trying to write an interface for a status option in my Props interface. See code below

interface Props {
  title: string;
  message: string;
  show: boolean;
  status: Status;
}

interface Status {
  warning: string;
  error: string;
  info: string;
  success: string;
}

However, I know this isn't the correct implementation. How would I go about this?

1 Answers
Related